- 23 Mar, 2001 14 commits
-
-
* jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields. * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField unconditionally. * include/jvm.h (_Jv_ResolveField): Declare. * include/java-interp.h (_Jv_ResolveField): Don't declare. * resolve.cc (_Jv_ResolveField): No longer conditional on INTERPRETER. From-SVN: r40785
Tom Tromey committed -
From-SVN: r40783
Colin Howell committed -
2001-02-07 Andrew Haley <aph@redhat.com> * gcj.texi (Configure-time Options): Add -fcheck-references. * expr.c (build_java_indirect_ref): New function. (java_check_reference): New function. (build_java_array_length_access): Use build_java_indirect_ref to check for null references. (build_java_arrayaccess): Likewise. (build_get_class): Likewise. (build_field_ref): Likewise. (invoke_build_dtable): Likewise. (build_invokeinterface): Likewise. * lang.c (lang_f_options): Add flag_check_references. * jvspec.c (jvgenmain_spec): Add flag_check_references. * java-tree.h (flag_check_references): New variable. * lang.c (flag_check_references): Likewise. * parse.y (patch_invoke): Use java_check_reference. (patch_assignment): Allow for extra nesting in _Jv_CheckArrayStore. From-SVN: r40782
Andrew Haley committed -
From-SVN: r40781
J"orn Rennecke committed -
2001-02-07 Andrew Haley <aph@redhat.com> * gcj.texi (Configure-time Options): Add -fcheck-references. * expr.c (build_java_indirect_ref): New function. (build_java_array_length_access): Use build_java_indirect_ref to check for null references. (build_java_arrayaccess): Likewise. (build_get_class): Likewise. (build_field_ref): Likewise. (invoke_build_dtable): Likewise. (build_invokeinterface): Likewise. * lang.c (lang_f_options): Add flag_check_references. * jvspec.c (jvgenmain_spec): Add flag_check_references. * java-tree.h (flag_check_references): New variable. * lang.c (flag_check_references): Likewise. From-SVN: r40780
Andrew Haley committed -
* decl.c (local_names): Define. (push_local_name): New. (grok_reference_init): Return init if initializing static reference variable with non-constant instead of emitting it. Move expand_static_init call to cp_finish_decl. (layout_var_decl): Call push_local_name. (maybe_commonize_var): Allow inlining functions even if they have static local variables, use comdat_linkage for them if flag_weak. (check_initializer): Call obscure_complex_init if grok_reference_init returned non-zero. (save_function_data): Clear x_local_names. (pop_cp_function_context): Free x_local_names. (mark_inlined_fns): Remove. (mark_lang_function): Mark x_local_names. (lang_mark_tree): Don't mark DECL_ACCESS for DECL_DISCRIMINATOR_P. Mark inlined_fns as tree, remove call to mark_inlined_fns. * class.c (alter_access): Ensure DECL_ACCESS is never set if DECL_DISCRIMINATOR_P. * cp-tree.h (cp_language_function): Add x_local_names. (lang_decl_flags): Add discriminator into u2. (lang_decl_inlined_fns): Remove. (lang_decl): inlined_fns is now a TREE_VEC. (DECL_DISCRIMINATOR_P, DECL_DISCRIMINATOR): Define. * optimize.c (inlinable_function_p): DECL_INLINED_FNS is now a TREE_VEC, not a custom structure. (optimize_function): Likewise. * mangle.c (discriminator_for_local_entity): Discriminate among VAR_DECL local entities. * search.c (dfs_access_in_type): If DECL_DISCRIMINATOR_P, DECL_ACCESS is not valid. * g++.old-deja/g++.other/mangle3.C: New test. From-SVN: r40779
Jakub Jelinek committed -
From-SVN: r40777
GCC Administrator committed -
* libjava.jni/field.out: New file. * libjava.jni/field.c: New file. * libjava.jni/field.java: New file. From-SVN: r40776
Tom Tromey committed -
Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva for libtool hacking. * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects to a temporary file, then invoke libtool with the -objectlist paramater. (libgcjx.la): Likewise. * Makefile.in: Rebuilt. From-SVN: r40775
Bryce McKinlay committed -
* gjavah.c (cxx_keywords): Update from the definitive list in cp/lex.c. * lex.c (cxx_keywords): Likewise. From-SVN: r40773
Bryce McKinlay committed -
2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de> * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo. From-SVN: r40771
Joerg Brunsmann committed -
2001-03-23 Bryce McKinlay <bryce@albatross.co.nz> * extend.texi: Document the "java_interface" attribute. java/: 2001-03-21 Bryce McKinlay <bryce@albatross.co.nz> * gjavah.c (process_file): Mark interface definitions with "__attribute__ ((java_interface))". cp/: 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz> Add support for Java interface method calls. * cp-tree.h (struct lang_type): Add java_interface flag. (TYPE_JAVA_INTERFACE): New macro. * tree.c (cp_valid_lang_attribute): Handle "java_interface" attribute by setting TYPE_JAVA_INTERFACE. * call.c (java_iface_lookup_fn): New static. (build_over_call): If calling a method declared in a TYPE_JAVA_INTERFACE, call build_java_interface_fn_ref to generate the expression which resolves the function address. (build_java_interface_fn_ref): New function. From-SVN: r40769
Bryce McKinlay committed -
* Makefile.in: Rebuilt. * Makefile.am (ffitest_LDFLAGS): New macro. From-SVN: r40768
Tom Tromey committed -
* mkconfig.sh: Use a subshell with redirected stdout, instead of closing stdout and confusing commands that run afterward. Throw away output of cmp. From-SVN: r40765
Zack Weinberg committed
-
- 22 Mar, 2001 22 commits
-
-
From-SVN: r40761
Gordon Sadler committed -
* i386.md (zero_extendsidi2_32): Break out from ... (zero_extendsidi2): ... here ; turn to expander. (zero_extendsidi2_rex64): New. (extendsidi2_32): Break out from ... (extendsidi2): ... here ; turn to expander. (extendsidi2_rex64): New. (zero_extendhidi2, zero_extendqidi2, extendhidi2, extendqidi2): New. (trunc?f?f splitters): Add 64bit versions. From-SVN: r40759
Jan Hubicka committed -
* i386.md (pushsi, pushsi2_prologue): Disable. (pushsi2_rex64): New. (movabs?i_1_rex64, movabs?i_2_rex64): New. (movqi_ext_1): Disable for 64bit. (movqi_ext_1_rex64): New. (pushdi2_rex64): New pattern, peep2s and splitter. (pushdi2_prologue_rex64): New pattern. (popdi1_epilogue_rex64, popdi1, movdi_xor_rex64, movdi_or_rex64): Likewise. (movdi splitters): Disable for 64bit. (movdi_1_rex64): New pattern, peep2s and splitters. (swapdi): New pattern. (pushsf): Disable for 64bit. (pushsf_rex64): New pattern and splitter. (pushdf_nointeger): Disable for 64bit. (pushdf_integer): Handle the 64bit case. (pushtf): Likewise; update splitters. From-SVN: r40758
Jan Hubicka committed -
From-SVN: r40756
Tom Tromey committed -
* mkconfig.sh: Include insn-flags.h. * Makefile.in (CONFIG_H): Include insn-flags.h. (lots of objects): Remove insn-codes.h and insn-flags.h. * alias.c, bb-reorder.c, calls.c, do-loop.c, flow.c, haifa-sched.c, integrate.c, jump.c, loop.c, predict.c, profile.c, reg-stack.c, regmove.c, reorg.c, a29k/a29k.c, alpha/alpha.c, arc/arc.c, arm/arm.c, avr/avr.c, clipper/clipper.c, convex/convex.c, d30v/d30v.c, dsp16xx/dsp16xx.c, fr30/fr30.c, h8300/h8300.c, i370/i370.c, i386/i386.c, i860/i860.c, ia64/ia64.c, m32r/m32r.c, m68hc11/m68hc11.c, m68k/m68k.c, m88k/m88k.c, mcore/mcore.c, mn10200/mn10200.c, mn10300/mn10300.c, ns32k/ns32k.c, pa/pa.c, pdp11/pdp11.c, pj/pj.c, romp/romp.c, rs6000/rs6000.c, sh/sh.c, sparc/sparc.c, v850/v850.c, vax/vax.c: Don't include insn-flags.h. * diagnostic.c, expr.h, reload.c, toplev.c: Don't include insn-codes.h. * builtins.c, combine.c, except.c, explow.c, expmed.c, expr.c, final.c, function.c, optabs.c, recog.c, reload1.c, stmt.c, c4x/c4x.c, i960/i960.c, mips/mips.c: Don't include insn-codes.h or insn-flags.h. * genemit.c, genopinit.c, genoutput.c: Don't include insn-codes.h or insn-flags.h in the generated code. * genflags.c (gen_proto): Use "struct rtx_def *" instead of "rtx". (main): Forward declare struct rtx_def. From-SVN: r40754
Richard Henderson committed -
* Make-lang.in (cp/except.o): Don't depend on insn-flags.h. * except.c: Don't include it. From-SVN: r40753
Richard Henderson committed -
* parse.y (bad_decl, template_arg_list_ignore, arg_list_ignore): New nonterminals. (data_def, component_decl): Add reductions to bad_decl. Co-Authored-By: Joe Buck <jbuck@synopsys.com> From-SVN: r40752
Gerald Pfeifer committed -
Re-installed: 2001-01-02 Laurynas Biveinis <lauras@softhome.net> * ltcf-c.sh: Clear ac_cv_prog_cc_pic for DJGPP. Do not add '-DPIC' to ac_cv_prog_cc_pic for DJGPP. * ltcf-cxx.sh: Likewise. * ltcf-gcj.sh: Likewise. From-SVN: r40749
Alexandre Oliva committed -
2001-03-22 Marcus G. Daniels <mgd@swarm.org> * jni.cc (add_char): Handle `.' like `/'. From-SVN: r40748
Marcus G. Daniels committed -
* method.c (do_build_assign_ref): Don't use build_modify_expr for anonymous aggregates, since they don't have assignment operator method. * decl.c (fixup_anonymous_aggr): Disallow ctors, dtors and copy assignment operators for anonymous structure fields. * g++.old-deja/g++.other/anon8.C: New test. From-SVN: r40746
Jakub Jelinek committed -
* cp-demangle.c (string_list_delete): Don't forget to free the actual contents of the string. From-SVN: r40744
Jim Blandy committed -
From-SVN: r40738
Gerald Pfeifer committed -
* invoke.texi (-ffast-math): Remove duplicate line about __FAST_MATH__. From-SVN: r40737
Joseph Myers committed -
* gcc.texi: Remove more obsolete documentation of bugs and installation problems. From-SVN: r40735
Joseph Myers committed -
From-SVN: r40734
Jason Merrill committed -
From-SVN: r40732
GCC Administrator committed -
* ltconfig, ltmain.sh, libtool.m4, ltcf-c.sh, ltcf-cxx.sh, ltcf-gcj.sh: Upgraded to libtool 1.4a 1.641.2.198. From-SVN: r40731
Alexandre Oliva committed -
* java/lang/reflect/Method.java (getExceptionTypes): Call getType() to initialize if exception_types is null. * java/lang/reflect/Constructor.java: Likewise. * java/lang/reflect/natConstructor.cc (getType): Initialize exception_types to an empty Object array. From-SVN: r40730
Bryce McKinlay committed -
2001-03-21 Kazu Hirata <kazu@hxi.com> * config/h8300/h8300.md (movsi_h8300hs): Split the 2nd alternative into two parts. From-SVN: r40725
Kazu Hirata committed -
pt.c (instantiate_decl): Abort if we see a member constant instantiation that doesn't already have its... * pt.c (instantiate_decl): Abort if we see a member constant instantiation that doesn't already have its initializer. Downgrade explicit instantiation without definition to pedwarn. * cp-tree.h (DECL_TINFO_FN_P, SET_DECL_TINFO_FN_P): Remove. * class.c (build_vtable_entry): Don't check DECL_TINFO_FN_P. (import_export_decl): Check tinfo_decl_p, not DECL_TINFO_FN_P. * cp-tree.h (CLASSTYPE_VTABLE_NEEDS_WRITING): Remove. (pending_vtables): Remove. * decl2.c (pending_vtables): Remove. (import_export_vtable): Use CLASSTYPE_INTERFACE_ONLY, not CLASSTYPE_VTABLE_NEEDS_WRITING. (import_export_class): Likewise. (init_decl2): Don't mark pending_vtables. * lex.c (handle_pragma_vtable): Just sorry. * pt.c (instantiate_class_template): Don't mess with CLASSTYPE_VTABLE_NEEDS_WRITING. (mark_class_instantiated): Likewise. * ptree.c (print_lang_type): Don't print it. * semantics.c (begin_class_definition): Don't set it. * pt.c (template_tail): Replace with last_pending_template. (maybe_templates, maybe_template_tail): Remove. (add_pending_template): Adjust. (instantiate_pending_templates): Adjust. * cp-tree.h (struct saved_scope): Remove lang_stack field. (current_lang_stack): Remove. * decl.c (maybe_push_to_top_level): Don't initialize it. (duplicate_decls): Use current_lang_depth. (xref_basetypes): Likewise. * class.c (current_lang_depth): New fn. (push_lang_context): Use more varray functionality. (pop_lang_context): Likewise. From-SVN: r40724
Jason Merrill committed -
* collect2.c (is_ctor_dtor): Always use '_' in the file fn names, not '.' or '$'. * tree.c (FILE_FUNCTION_FORMAT): Likewise. * varasm.c (CHKR_PREFIX): Likewise. * error.c (GLOBAL_THING): Always use '__'. From-SVN: r40723
Jason Merrill committed -
* gcse.c (hash_scan_set): An expression is not anticipatible if it is part of a multi-SET insn. From-SVN: r40722
Richard Kenner committed
-
- 21 Mar, 2001 4 commits
-
-
From-SVN: r40721
Tom Tromey committed -
2001-03-21 Alexandre Petit-Bianco <apbianco@redhat.com> * class.c (layout_class): Fixed push_super_field's second argument. Fixes PR java/2333. (jdep_resolve_class): Reset TYPE_SIZE if `error_mark_node', it's too early to lay innerclasses out. (http://gcc.gnu.org/ml/gcc-patches/2001-03/msg01582.html) From-SVN: r40719
Alexandre Petit-Bianco committed -
From-SVN: r40717
Mark Mitchell committed -
* cse.c (find_comparison_args): Remove previous change. * ifcvt.c (noce_process_if_block): When moving an insn, remove any REG_EQUAL notes. From-SVN: r40715
Richard Kenner committed
-