1. 04 Apr, 2002 16 commits
    • re PR fortran/6106 (sparc-sun-solaris2.7 gcc-3.1 extra g77 testsuite failures w/-m64) · 8b156b3e
      	PR fortran/6106
      	* config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
      	change.
      
      From-SVN: r51857
      Jakub Jelinek committed
    • Arrays.java (qsort): Fix off-by-one errors and use of incorrect "hi" value when count > 40. · 1d8f2fd8
      	* java/util/Arrays.java (qsort): Fix off-by-one errors and use of
      	incorrect "hi" value when count > 40.
      
      From-SVN: r51854
      Bryce McKinlay committed
    • sparc.c (sparc_va_arg): Adjust va_list by UNITS_PER_WORD for zero sized aggregates. · 014c0998
      	* config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
      	UNITS_PER_WORD for zero sized aggregates.
      
      From-SVN: r51853
      Jakub Jelinek committed
    • arm-asm.c: Run this test on ARM chips, not SPARC. · 31956228
      * gcc.dg/arm-asm.c: Run this test on ARM chips, not SPARC.  Use
      __asm__ so that it works correctly even if -ansi -pedantic-errors.
      
      From-SVN: r51851
      Richard Earnshaw committed
    • Modifier.java (toString(int,StringBuffer)): Fix ordering. · 2801df0e
              * java/lang/reflect/Modifier.java (toString(int,StringBuffer)): Fix
              ordering.
      
      From-SVN: r51848
      Mark Wielaard committed
    • Daily bump. · 257b325b
      From-SVN: r51847
      GCC Administrator committed
    • utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME. · 82a4b025
      2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
      
      	* utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
      	(builtin_function): Similarly.
      
      From-SVN: r51843
      Neil Booth committed
    • gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new one-character spec for this,… · 4d8611d9
      gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new one-character spec for this, just use %(link_gcc_c_sequence).
      
      2002-04-03  David S. Miller  <davem@redhat.com>
      
      	* gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
      	one-character spec for this, just use %(link_gcc_c_sequence).
      
      From-SVN: r51842
      David S. Miller committed
    • crtfastmath.c (FPRS_NS): Delete bogus little-endian handling. · b03ad99d
      2002-04-03  David S. Miller  <davem@redhat.com>
      
      	* config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
      	handling.
      
      From-SVN: r51840
      David S. Miller committed
    • As per DR 184, libstdc++/3139 · a9bb75a7
      
      2002-04-03  Benjamin Kosnik  <bkoz@redhat.com>
      
              As per DR 184, libstdc++/3139
              * include/std/std_limits.h (__glibcpp_bool_digits): Change to 1.
              (numeric_limits<bool>::is_iec559): False.
              (numeric_limits<bool>::is_modulo): False.
      
      	* testsuite/27_io/ios_init.cc: Add instantiations.
      
      From-SVN: r51838
      Benjamin Kosnik committed
    • pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move. · 823fbbce
      	* pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
      	(DWARF_FRAME_RETURN_COLUMN): Move.
      	(ASM_PREFERRED_EH_DATA_FORMAT): Define.
      	(ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
      	* pa.c (except.h, predict.h): Include.
      	(FRP): Delete.
      	(store_reg_modify, set_reg_plus_d): Revise prototypes.
      	(output_ascii): Add cast.
      	(store_reg_modify): Revise to add frame notes.
      	(set_reg_plus_d): Likewise.
      	(compute_frame_size): Include space for eh data registers in frame if
      	the current function calls eh_return.
      	(hppa_expand_prologue):  Ensure register %r2 is saved if the current
      	function calls eh_return.  Save eh data registers if the current
      	function calls eh_return.  Fix code to add frame notes.  Emit
      	blockage to prevent insns with frame notes being scheduled in the
      	delay slot of calls.
      	(hppa_expand_epilogue): Restore eh data registers and do final stack
      	adjustment if the current function calls eh_return.  Don't add frame
      	notes.
      	(output_call): Revise for change in length of call insn.  Don't do
      	return pointer adjustment for an unconditional jump in the delay slot
      	of a call when using frame notes.
      	* pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
      	(EH_RETURN_HANDLER_RTX): Use saved value on stack.
      	(ARG_POINTER_CFA_OFFSET): Define.
      	* pa.md (return_external_pic): New pattern.
      	(prologue): Correct formatting.  Use return_external_pic if current
      	function calls eh_return.
      	(call_internal_symref, call_value_internal_symref,
      	sibcall_internal_symref, sibcall_value_internal_symref): Change default
      	lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
      	respectively.
      	(exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
      
      	* configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
      	list of targets to check using "nop" insn.
      	* configure: Rebuilt.
      
      From-SVN: r51836
      John David Anglin committed
    • * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define. · 4078e224
      From-SVN: r51835
      Alan Modra committed
    • gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c library… · bbd7687d
      gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c library sequence passed to the linker.
      
      2002-04-03  David S. Miller  <davem@redhat.com>
      
      	* gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
      	library sequence passed to the linker.
      	(LINK_COMMAND_SPEC): Use it.
      	* doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
      	a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
      	* config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
      
      From-SVN: r51834
      David S. Miller committed
    • re PR c++/5118 (c4x-g++ Fails on Templates) · eb81f6ff
              PR c++/5118
              * class.c (get_vfield_name): Use the constructor_name.
      
      From-SVN: r51830
      Jason Merrill committed
    • linkage.exp: Update last change to handle sparc*-, not just sparc-. · 71fad614
      	* gcc.misc-tests/linkage.exp: Update last change to handle
      	sparc*-, not just sparc-.
      
      From-SVN: r51828
      Kaveh R. Ghazi committed
    • re PR c++/5636 (gcc-3.0.3, memory leakage: function that take a string as… · 659e5a7a
      re PR c++/5636 (gcc-3.0.3, memory leakage: function that take a string as parameter will not call local variable destructors if exception is thrown.)
      
              PR c++/5636
              * tree.h (CLEANUP_EH_ONLY): New macro.
              * stmt.c (expand_decl_cleanup_eh): New fn.
              (expand_cleanups): Check CLEANUP_EH_ONLY.
              * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
              Use expand_decl_cleanup_eh.
              (expand_stmt): Adjust.
              * c-common.h: Adjust prototype.
              * cp/semantics.c (nullify_returns_r): Just set CLEANUP_EH_ONLY on
              cleanup for nrv.
      
              * except.c (struct eh_status): Remove protect_list.
              (begin_protect_partials, end_protect_partials): Remove.
              (add_partial_entry): Remove.
              * except.h: Remove prototypes.
      
              * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
              expand_decl_cleanup_eh.
      
      cp/:
              * semantics.c (finish_eh_cleanup): New fn.
              * cp-tree.h: Add prototype.
              * init.c (perform_member_init, expand_cleanup_for_base): Use
              finish_eh_cleanup.
              * cp-tree.def (SUBOBJECT, CTOR_STMT): Remove.
              * cp-tree.h: Remove references.
              * decl.c (begin_constructor_body, end_constructor_body): Likewise.
              * dump.c (cp_dump_tree): Likewise.
              * pt.c (tsubst_expr): Likewise.
              * semantics.c (genrtl_ctor_stmt, genrtl_subobject): Remove.
              (cp_expand_stmt): Remove handling of CTOR_STMT and SUBOBJECT.
              * tree.c (cp_statement_code_p): Likewise.
      
              * init.c (build_new_1): Set CLEANUP_EH_ONLY on deleting cleanup.
      
      From-SVN: r51827
      Jason Merrill committed
  2. 03 Apr, 2002 24 commits
    • cris.c (cris_target_asm_function_prologue): Cast uses of PIC_OFFSET_TABLE_REGNUM… · 053d3344
      cris.c (cris_target_asm_function_prologue): Cast uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
      
      	* config/cris/cris.c (cris_target_asm_function_prologue): Cast
      	uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
      	(cris_target_asm_function_epilogue): Ditto.
      	(cris_initial_frame_pointer_offset): Ditto.
      	(cris_simple_epilogue): Ditto.
      	(cris_expand_builtin_va_arg): Variable-size types come in
      	by-reference.
      
      From-SVN: r51825
      Hans-Peter Nilsson committed
    • crtfastmath.c (FPRS_NS): Get it right for little-endian. · 61ab5260
      2002-04-03  David S. Miller  <davem@redhat.com>
      
      * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
      little-endian.
      (set_fast_math): Correct 'fsr' type.
      
      From-SVN: r51824
      David S. Miller committed
    • re PR c++/5104 (template using std::set_terminate fails due to throw() qualifier in <exception>) · dffa4176
              PR c++/5104
              * typeck.c (comptypes) [FUNCTION_TYPE]: Don't compare exception
              specifiers.
              [METHOD_TYPE]: Use same code as FUNCTION_TYPE.
      
      From-SVN: r51821
      Jason Merrill committed
    • Oops, wrong pr number. · 36c2272c
      From-SVN: r51820
      Richard Henderson committed
    • fix comment · 9ba81eaa
      From-SVN: r51819
      Jason Merrill committed
    • re PR rtl-optimization/4330 (Optimizer generates illegal assembly code) · ef4f94ac
              PR opt/4330
              * langhooks.h (lang_hooks.decls.warn_unused_global): New.
              * toplev.c (check_global_declarations): Use it.
              * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
              (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
              (LANG_HOOKS_DECLS): Add it.
              * langhooks.c (lhd_warn_unused_global_decl): New.
              * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
              * c-objc-common.c (c_warn_unused_global_decl): New.
              * c-tree.h (c_warn_unused_global_decl): Declare.
              * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
      
              * cp-lang.c (cxx_warn_unused_global_decl): New.
              (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
      
      	* g++.dg/warn/Wunused-2.C: New.
      	* gcc.dg/unused-4.c: New.
      
      From-SVN: r51818
      Richard Henderson committed
    • langhooks-def.h (lhd_set_decl_assembler_name, [...]): New. · 599bba86
      	* langhooks-def.h (lhd_set_decl_assembler_name,
      	LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
      	(LANG_HOOKS_INITIALIZER): Update.
      	* langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
      	* langhooks.h (struct lang_hooks): New hook.
      	* tree.c (set_decl_assembler_name): Move to langhooks.c.
      	(lang_set_decl_assembler_name): Remove.
      	(init_obstacks): Don't set hook.
      	(decl_assembler_name): New function.
      	* tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
      	(decl_assembler_name): New.
      	(lang_set_decl_assembler_name): Remove.
      cp:
      	* cp-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Redefine.
      	* tree.c (init_tree): Don't set hook.
      
      From-SVN: r51817
      Neil Booth committed
    • configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32() works… · cf7b8b0d
      configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32() works properly with .hidden symbols.
      
      	* configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
      	works properly with .hidden symbols.
      	* configure: Rebuilt.
      	* config.in: Rebuilt.
      	* config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
      	DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
      	properly with .hidden symbols.
      
      From-SVN: r51816
      Jakub Jelinek committed
    • * gcc.dg/cpp/ucs.c: Improved long UCS test. · 9d7013b8
      From-SVN: r51815
      Richard Henderson committed
    • re PR middle-end/6102 (sparc-sun-solaris2.7 gcc-3.1 RTL checking failure on gcc.dg/20020201-4.c) · faf6db38
      	PR middle-end/6102
      	* df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
      	USE argument.
      
      From-SVN: r51813
      Jakub Jelinek committed
    • re PR c++/5998 (regression, all builtins disabled) · cba2004a
      	PR c++/5998:
      	* decl.c (duplicate_decls): Don't mess with assembler names when
      	redeclaring builtin functions as static.
      
      From-SVN: r51812
      Roger Sayle committed
    • crtfastmath.c: New file. · a261e0cc
      2002-04-03  David S. Miller  <davem@redhat.com>
      
      	* config/sparc/crtfastmath.c: New file.
      	* config/sparc/t-crtfm: New file.
      	* config/sparc/linux.h (ENDFILE_SPEC): Use crtfastmath.o
      	* config/sparc/linux64.h (ENDFILE_SPEC): Likewise.
      	* config/sparc/sol2.h (ENDFILE_SPEC): Likewise.
      	* config/sparc/sp64-elf.h (ENDFILE_SPEC): Likewise.
      	* config/sparc/elf.h (ENDFILE_SPEC): Likewise.
      	* config.gcc (sparc*-*-{elf*,linux*,solaris2*}): Add
      	sparc/t-crtfm to tmake_file.
      
      	* config/sparc/sparc-protos.h (sparc_emitting_epilogue): Add.
      
      From-SVN: r51808
      David S. Miller committed
    • sched-rgn.c (sets_likely_spilled): New. · 68c17f30
              * sched-rgn.c (sets_likely_spilled): New.
              (sets_likely_spilled_1): New.
              (add_branch_dependences): Use it.
      
      From-SVN: r51806
      Richard Henderson committed
    • Daily bump. · 13f39b6d
      From-SVN: r51802
      GCC Administrator committed
    • re PR rtl-optimization/4311 (unrolling loops creates non-ending loop) · 6584b4aa
              PR opt/4311
              * loop.h (LOOP_FIRST_PASS): New.
              * loop.c (strength_reduce): Mind it when deciding to unroll.
              * toplev.c (rest_of_compilation): Set it.
      
      From-SVN: r51798
      Richard Henderson committed
    • sparc.md (ldd peephole2s): Fix final arg to mems_ok_for_ldd_peep when the order… · 0acf409f
      sparc.md (ldd peephole2s): Fix final arg to mems_ok_for_ldd_peep when the order of the loads being...
      
      2002-04-02  David S. Miller  <davem@redhat.com>
      
      	* config/sparc/sparc.md (ldd peephole2s): Fix final arg to
      	mems_ok_for_ldd_peep when the order of the loads being examined
      	is reversed.
      	* config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
      	existing comment to increase comprehension of this situation.
      
      From-SVN: r51796
      David S. Miller committed
    • * config/sh/sh.md: Don't use union real_extract. · 85654444
      From-SVN: r51794
      Zack Weinberg committed
    • * libgcc2.c (__bb_exit_func): Revert 03-31 change. · 543828ca
      From-SVN: r51792
      Richard Henderson committed
    • config.gcc (i386-dg-dgux, [...]): Include as many configury headers via tm_file as possible. · 39ed301b
      2002-04-02  David O'Brien  <obrien@FreeBSD.org>
      	* config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
      	i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
      	i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
      	i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
      	i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
      	i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
      	i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
      	i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
      	i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
      	i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
      	i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
      	i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
      	i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
      	i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
      	Include as many configury headers via tm_file as possible.  This
      	includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
      	* config/openbsd-oldgas.h: New file.
      	* config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
      	config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
      	config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
      	config/i386/i386-coff.h, config/i386/i386-interix.h,
      	config/i386/iscdbx.h, config/i386/linux-aout.h,
      	config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
      	config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
      	config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
      	config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
      	config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
      	config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
      	config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
      	config/i386/vxi386.h: Do not directly include configury headers.
      	* config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
      	Directly include configury headers that are no longer automatically
      	included by the above headers.
      	* config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
      	* config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
      	config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
      	config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
      	config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
      	config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
      	config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
      	(TARGET_VERSION): Define.
      	* config/i386/beos-elf.h, config/i386/freebsd.h,
      	config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
      	config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
      	config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
      	config/i386/sco5.h, config/i386/sysv4.h
      	(TARGET_VERSION): Do not need to protect.
      	* config/i386/freebsd64.h (TARGET_VERSION): Fix style.
      	* config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
      	config/i386/freebsd-aout.h, config/i386/i386-aout.h,
      	config/i386/i386-interix.h, config/i386/linux-aout.h,
      	config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
      	config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
      	(YES_UNDERSCORES): Do not define - not needed.
      	* config/i386/bsd.h, config/i386/gas.h (LPREFIX,
      	ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
      	USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
      	* config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
      	(LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
      	USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
      	* config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
      	* config/i386/isccoff.h, config/i386/v3gas.h: Remove.
      
      Approved by:  Richard Henderson <rth@redhat.com>
                    Message-ID: <20020402190415.D29320@redhat.com>
      
      From-SVN: r51791
      David O'Brien committed
    • function.c (assign_temp): Accept either type or decl argument. · 9432c136
              * function.c (assign_temp): Accept either type or decl argument.
              Detect variables whose size is too large to fit into an integer.
              * stmt.c (expand_decl): Pass the decl, not the type.
      
      Co-Authored-By: Richard Henderson <rth@redhat.com>
      
      From-SVN: r51788
      Eric Botcazou committed
    • protoize.c: Match include directory usage with cppdefault.c. · 058b1275
      2002-04-02  David O'Brien  <obrien@FreeBSD.org>
      	* protoize.c: Match include directory usage with cppdefault.c.
      
      Approved by:  Richard Henderson <rth@redhat.com>
                    Message-ID: <20020329131400.C19829@redhat.com>
      
      From-SVN: r51787
      David O'Brien committed
    • combine.c (simplify_comparison): Avoid narrowing a comparison with a paradoxical subreg when... · 5add6d1a
      	* combine.c (simplify_comparison): Avoid narrowing a comparison
      	with a paradoxical subreg when doing so would drop signficant bits.
      
      Co-Authored-By: Hans-Peter Nilsson <hp@bitrange.com>
      
      From-SVN: r51785
      Jeff Law committed
    • 20020402-3.c: New test. · 2e839a04
      2002-04-02  David S. Miller  <davem@redhat.com>
      
      	* gcc.c-torture/execute/20020402-3.c: New test.
      
      From-SVN: r51781
      David S. Miller committed