aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2001-03-24std_bitset.h: Include ostream and istream headers instead of iostream.Phil Edwards2-1/+7
2001-03-24 Phil Edwards <pme@sources.redhat.com> * include/bits/std_bitset.h: Include ostream and istream headers instead of iostream. From-SVN: r40820
2001-03-24i386.md (cmpdi): Fix operand predicates.Jan Hubicka2-26/+1370
* i386.md (cmpdi): Fix operand predicates. (cmpdi_ccno_1_rex64, cmpdi_minus_1_rex64, cmpdi_1_rex64, cmpdi_1_insn_rex64): New patterns. (adddi3): Turn to expander. (adddi3_1, adddi3_carry_rex64, adddi3_cc_rex64): New patterns. (addsi3_carry_zext): New pattern. (adddi_?_rex64): New patterns and splitters. (addsi_?_zext): New patterns. (subsi3_carry_zext): New pattern. (subdi_?_rex64): New patterns and splitters. (iorsi_?_zext): New patterns. (iordi_?_rex64): New patterns and splitters. (iorsi_?_zext): New patterns. (iorsi_?_zext_imm): New patterns. (xorsi_?_zext): New patterns. (xordi_?_rex64): New patterns and splitters. (xorsi_?_zext): New patterns. (negdi*): New patterns. (one_cmpldi*): Likewise. (one_cmplsi*_zext, negsi*_zext): Likewise. (testqi_ext_3_rex64): New pattern. From-SVN: r40819
2001-03-24i386-protos.h (ix86_split_long_move): Return void.Jan Hubicka4-71/+161
* i386-protos.h (ix86_split_long_move): Return void. * i386.c (ix86_split_to_parts): Handle 64bit target. (ix86_split_long_move): Likewise. * i386.md (all calls to ix86_split_long_move): Update. From-SVN: r40816
2001-03-24Daily bump.GCC Administrator5-5/+5
From-SVN: r40814
2001-03-24HashMap.java (HashMap): If 0 is given for initialCapacity paramater, bump it ↵Bryce McKinlay3-3/+13
to 1. 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz> * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity paramater, bump it to 1. * java/util/Hashtable.java (Hashtable): Likewise. From-SVN: r40812
2001-03-23Left out while checking in java/lang/natDouble.cc (parseDouble) change.Per Bothner1-0/+5
From-SVN: r40811
2001-03-24Fixed ChangeLog headerKevin B Hendricks1-1/+1
From-SVN: r40808
2001-03-24ppc_closure.S: New file.Kevin B Hendricks6-5/+433
* src/powerpc/ppc_closure.S: New file. * src/powerpc/ffi.c (ffi_prep_args): Fixed ABI compatibility bug involving long long and register pairs. (ffi_prep_closure): New function. (flush_icache): Likewise. (ffi_closure_helper_SYSV): Likewise. * include/ffi.h.in (FFI_CLOSURES): Define on PPC. (FFI_TRAMPOLINE_SIZE): Likewise. (FFI_NATIVE_RAW_API): Likewise. * Makefile.in: Rebuilt. * Makefile.am (EXTRA_DIST): Added src/powerpc/ppc_closure.S. (TARGET_SRC_POWERPC): Likewise. From-SVN: r40807
2001-03-23iris4.h (ASM_OUTPUT_ASCII): Rename local variables to avoid shadowing arguments.Richard Henderson2-12/+18
* config/mips/iris4.h (ASM_OUTPUT_ASCII): Rename local variables to avoid shadowing arguments. From-SVN: r40804
2001-03-23re PR java/1208 (Gcj can't compile a class file it generates.)Per Bothner5-46/+61
e * verify.c (verify_jvm_instructions): Replace 3 pop_type by POP_TYPE macro for better error pin-pointing. * java-tree.h: Fix typo in comment. * jcf-write.c (generate_bytecode_insns): Changes to TRY_FINALLY_EXPR. Don't include jsr/goto in exception range. Check if start and end of exception range are the same (also TRY_EXPR). Don't emit jsr after try_block if CAN_COMPLETE_NORMALLY is false. However, do emit the following goto even if try_block is empty. Defer freeing exception_decl until after the finalizer, to make sure the local isn't reused in the finalizer. Fixes PR java/1208. * parse.y (java_complete_lhs): If the try-clause is empty, just return the finally-clause and vice versa. From-SVN: r40801
2001-03-23natDouble.cc (parseDouble): Cannot use errno to check for errors...Per Bothner1-15/+25
* java/lang/natDouble.cc (parseDouble): Cannot use errno to check for errors, since we don't want to throw exception on overflow/underflow. Instead, trim whitespace, and then check that _strtod_r uses up all the rest of the string. From-SVN: r40800
2001-03-23natClass.cc (_Jv_IsAssignableFrom): Checking the ancestors array is invalid ↵Per Bothner2-7/+16
for interfaces... * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the ancestors array is invalid for interfaces, so do that *after* check that the target type is not an interface. From-SVN: r40797
2001-03-23Makefile.in (DO_X): Do not backslash single-quotes in backquotes (two places).Colin Howell2-2/+3
* Makefile.in (DO_X): Do not backslash single-quotes in backquotes (two places). From-SVN: r40796
2001-03-23mangle.c (write_discriminator): Use `_0' for discriminator 1, not `_'.Jakub Jelinek4-10/+13
* mangle.c (write_discriminator): Use `_0' for discriminator 1, not `_'. * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1, `_' not followed by a digit is invalid. From-SVN: r40795
2001-03-23varasm.c (make_decl_rtl): Don't append var_labelno discriminator to variable ↵Jakub Jelinek2-1/+8
names where DECL_NAME is... * varasm.c (make_decl_rtl): Don't append var_labelno discriminator to variable names where DECL_NAME is different from DECL_ASSEMBLER_NAME. From-SVN: r40794
2001-03-23ostream.tcc: Use __builtin_alloca.Greg Bumgardner2-1/+5
2001-03-22 Greg Bumgardner <bumgard@roguewave.com> * include/bits/ostream.tcc: Use __builtin_alloca. From-SVN: r40793
2001-03-23misc-inst.cc (__sink_unused_warning): Move to...Benjamin Kosnik5-27/+32
2001-03-22 Benjamin Kosnik <bkoz@redhat.com> * src/misc-inst.cc (__sink_unused_warning): Move to... * src/locale-inst.cc (__sink_unused_warning): Move to... * src/stl-inst.cc: Here. * include/bits/c++config (_STL_NO_CONCEPT_CHECKS): Add define, commented it out. From-SVN: r40792
2001-03-23Re-add missing debug info for weak aliases.Jim Wilson2-0/+11
* varasm.c (make_decl_rtl): Add TREE_PUBLIC check to abort test. (assemble_alias): Call make_decl_rtl. From-SVN: r40791
2001-03-23re PR java/1213 (gcj should check for incorrect CLASSPATH)Alexandre Petit-Bianco9-14/+106
2001-03-22 Alexandre Petit-Bianco <apbianco@redhat.com> * gcj.texi (Input Options): documented the check for attribute `gnu.gcc.gccj-compiled' and the `-fforce-classes-archive-check' flag. * java-tree.h (flag_force_classes_archive_check): Declared extern. * jcf-parse.c (HANDLE_GCJCOMPILED_ATTRIBUTE): New macro. (jcf_parse): Check for the right classes archive if necessary. * jcf-reader.c (get_attribute): Define `MATCH_ATTRIBUTE' and use it. (jcf_parse_fields): Fixed indentation. * jcf-write.c (append_gcj_attribute): New function. (generate_classfile): Compute the attribute count, invoke `append_gcj_attribute'. * jcf.h (typedef struct JCF): `seen_in_zip' and `java_source' turned into bit fields. New bit field `right_zip.' (JCF_ZERO): Set `right_zip' to zero. * lang-options.h (-fforce-classes-archive-check): Added flag. * lang.c (flag_force_classes_archive_check): New flag. (lang_f_options): New entry `force-classes-archive-check.' Fixes PR java/1213. (http://gcc.gnu.org/ml/gcc-patches/2001-03/msg01662.html) From-SVN: r40788
2001-03-23prims.cc (_Jv_FindClassFromSignature): Check return of recursive call.Jeff Sturm2-3/+13
2000-03-23 Jeff Sturm <jsturm@one-point.com> * prims.cc (_Jv_FindClassFromSignature): Check return of recursive call. Do not abort on invalid signature; return NULL instead. From-SVN: r40787
2001-03-23jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.Tom Tromey7-33/+40
* 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
2001-03-23* Makefile.in (DO_X): Do not backslash single-quotes in backquotes.Colin Howell2-1/+5
From-SVN: r40783
2001-03-23gcj.texi (Configure-time Options): Add -fcheck-references.Andrew Haley2-25/+21
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
2001-03-23* stor-layout.c (layout_type): Give OFFSET_TYPE a MODE_INT type.J"orn Rennecke2-1/+7
From-SVN: r40781
2001-03-23gcj.texi (Configure-time Options): Add -fcheck-references.Andrew Haley6-52/+86
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
2001-03-23decl.c (local_names): Define.Jakub Jelinek9-81/+197
* 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
2001-03-23Daily bump.GCC Administrator5-5/+5
From-SVN: r40777
2001-03-23field.out: New file.Tom Tromey4-0/+56
* libjava.jni/field.out: New file. * libjava.jni/field.c: New file. * libjava.jni/field.java: New file. From-SVN: r40776
2001-03-23re PR libgcj/1736 ([irix 6.5] Cannot create libgcj - Arg list too long)Bryce McKinlay3-50/+60
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
2001-03-23gjavah.c (cxx_keywords): Update from the definitive list in cp/lex.c.Bryce McKinlay3-8/+159
* gjavah.c (cxx_keywords): Update from the definitive list in cp/lex.c. * lex.c (cxx_keywords): Likewise. From-SVN: r40773
2001-03-23Context.java (SECURITY_CREDENTIALS): Fix typo.Joerg Brunsmann2-1/+5
2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de> * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo. From-SVN: r40771
2001-03-23[multiple changes]Bryce McKinlay8-3/+126
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
2001-03-23Makefile.in: Rebuilt.Tom Tromey3-1/+7
* Makefile.in: Rebuilt. * Makefile.am (ffitest_LDFLAGS): New macro. From-SVN: r40768
2001-03-23mkconfig.sh: Use a subshell with redirected stdout...Zack Weinberg2-3/+12
* 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
2001-03-22* Makefile.in (stage1_build): Pass CFLAGS to stage1_build.Gordon Sadler2-1/+6
From-SVN: r40761
2001-03-22i386.md (zero_extendsidi2_32): Break out from ...Jan Hubicka2-14/+174
* 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
2001-03-22i386.md (pushsi, [...]): Disable.Jan Hubicka2-20/+475
* 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
2001-03-22* Makefile.am (gctest_LDFLAGS): Use -shared-libgcc.Tom Tromey3-2/+6
From-SVN: r40756
2001-03-22mkconfig.sh: Include insn-flags.h.Richard Henderson73-129/+74
* 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
2001-03-22Make-lang.in (cp/except.o): Don't depend on insn-flags.h.Richard Henderson3-2/+6
* Make-lang.in (cp/except.o): Don't depend on insn-flags.h. * except.c: Don't include it. From-SVN: r40753
2001-03-22parse.y (bad_decl, [...]): New nonterminals.Gerald Pfeifer2-0/+30
* 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
2001-03-22ltcf-c.sh: Clear ac_cv_prog_cc_pic for DJGPP.Alexandre Oliva4-7/+47
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
2001-03-22jni.cc (add_char): Handle `.' like `/'.Marcus G. Daniels2-1/+8
2001-03-22 Marcus G. Daniels <mgd@swarm.org> * jni.cc (add_char): Handle `.' like `/'. From-SVN: r40748
2001-03-22method.c (do_build_assign_ref): Don't use build_modify_expr for anonymous ↵Jakub Jelinek5-1/+66
aggregates... * 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
2001-03-22cp-demangle.c (string_list_delete): Don't forget to free the actual contents ↵Jim Blandy2-1/+7
of the string. * cp-demangle.c (string_list_delete): Don't forget to free the actual contents of the string. From-SVN: r40744
2001-03-22* MAINTAINERS: Add myself as "documentation co-maintainer".Gerald Pfeifer2-0/+5
From-SVN: r40738
2001-03-22invoke.texi (-ffast-math): Remove duplicate line about __FAST_MATH__.Joseph Myers2-2/+3
* invoke.texi (-ffast-math): Remove duplicate line about __FAST_MATH__. From-SVN: r40737
2001-03-22gcc.texi: Remove more obsolete documentation of bugs and installation problems.Joseph Myers2-36/+6
* gcc.texi: Remove more obsolete documentation of bugs and installation problems. From-SVN: r40735
2001-03-22newJason Merrill1-0/+9
From-SVN: r40734
2001-03-22Daily bump.GCC Administrator5-5/+5
From-SVN: r40732