aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2002-04-03re PR c++/5104 (template using std::set_terminate fails due to throw() ↵Jason Merrill3-20/+27
qualifier in <exception>) PR c++/5104 * typeck.c (comptypes) [FUNCTION_TYPE]: Don't compare exception specifiers. [METHOD_TYPE]: Use same code as FUNCTION_TYPE. From-SVN: r51821
2002-04-03Oops, wrong pr number.Richard Henderson1-1/+1
From-SVN: r51820
2002-04-03fix commentJason Merrill1-1/+1
From-SVN: r51819
2002-04-03re PR rtl-optimization/4330 (Optimizer generates illegal assembly code)Richard Henderson13-56/+151
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
2002-04-03langhooks-def.h (lhd_set_decl_assembler_name, [...]): New.Neil Booth9-50/+73
* 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
2002-04-04configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32() works ↵Jakub Jelinek5-9/+104
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
2002-04-03* gcc.dg/cpp/ucs.c: Improved long UCS test.Richard Henderson2-4/+38
From-SVN: r51815
2002-04-03re PR middle-end/6102 (sparc-sun-solaris2.7 gcc-3.1 RTL checking failure on ↵Jakub Jelinek2-1/+7
gcc.dg/20020201-4.c) PR middle-end/6102 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access USE argument. From-SVN: r51813
2002-04-03re PR c++/5998 (regression, all builtins disabled)Roger Sayle2-3/+6
PR c++/5998: * decl.c (duplicate_decls): Don't mess with assembler names when redeclaring builtin functions as static. From-SVN: r51812
2002-04-03crtfastmath.c: New file.David S. Miller8-13/+83
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
2002-04-03sched-rgn.c (sets_likely_spilled): New.Richard Henderson2-3/+45
* sched-rgn.c (sets_likely_spilled): New. (sets_likely_spilled_1): New. (add_branch_dependences): Use it. From-SVN: r51806
2002-04-03* gcc.dg/wchar_t-1.c, gcc.dg/wchar_t-1.c: Fix typo last change.Hans-Peter Nilsson3-2/+6
From-SVN: r51804
2002-04-03Daily bump.GCC Administrator6-6/+6
From-SVN: r51802
2002-04-02re PR rtl-optimization/4311 (unrolling loops creates non-ending loop)Richard Henderson4-3/+11
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
2002-04-02sparc.md (ldd peephole2s): Fix final arg to mems_ok_for_ldd_peep when the ↵David S. Miller3-2/+24
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
2002-04-03* config/sh/sh.md: Don't use union real_extract.Zack Weinberg2-6/+10
From-SVN: r51794
2002-04-02* libgcc2.c (__bb_exit_func): Revert 03-31 change.Richard Henderson2-1/+5
From-SVN: r51792
2002-04-03config.gcc (i386-dg-dgux, [...]): Include as many configury headers via ↵David O'Brien54-391/+330
tm_file as possible. 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
2002-04-02function.c (assign_temp): Accept either type or decl argument.Eric Botcazou3-6/+39
* 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
2002-04-03protoize.c: Match include directory usage with cppdefault.c.David O'Brien2-8/+18
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
2002-04-03combine.c (simplify_comparison): Avoid narrowing a comparison with a ↵Jeff Law2-23/+47
paradoxical subreg when... * 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
2002-04-0220020402-3.c: New test.David S. Miller2-0/+85
2002-04-02 David S. Miller <davem@redhat.com> * gcc.c-torture/execute/20020402-3.c: New test. From-SVN: r51781
2002-04-02builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode if ↵Steve Ellcey2-4/+16
POINTERS_EXTEND_UNSIGNED is defined. * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode if POINTERS_EXTEND_UNSIGNED is defined. From-SVN: r51778
2002-04-03ios.cc: (ios_base::Init::_S_ios_destroy): Remove flush calls.Benjamin Kosnik6-38/+113
2002-04-02 Benjamin Kosnik <bkoz@redhat.com> libstdc++/5268 * src/ios.cc: (ios_base::Init::_S_ios_destroy): Remove flush calls. * testsuite/27_io/ios_init.cc (tests04): Add test. libstdc++/3983 * include/bits/basic_ios.h (basic_ios::_M_get_fctype_ios): Remove. (basic_ios::_M_ios_fctype): Consistently name to _M_fctype. * include/bits/basic_ios.tcc: Same. Remove outdated comments. * include/bits/istream.tcc: Use _M_fctype, make consistent with ostream. * testsuite/27_io/ios_init.cc (tests03): Add test. From-SVN: r51777
2002-04-02local-alloc.c (contains_replace_regs): LO_SUM may contain replace regs.Richard Henderson3-1/+236
* local-alloc.c (contains_replace_regs): LO_SUM may contain replace regs. * gcc.c-torture/execute/20020402-2.c: New. From-SVN: r51773
2002-04-03bprob.exp: Skip for mmix-*-* and cris-*-*.Hans-Peter Nilsson4-2/+26
* g77.dg/bprob/bprob.exp: Skip for mmix-*-* and cris-*-*. * g++.dg/bprob/bprob.exp, gcc.misc-tests/bprob.exp: Ditto. From-SVN: r51772
2002-04-03f77-edit-i-in.f: xfail for mmix-knuth-mmixware.Hans-Peter Nilsson6-1/+39
* g77.dg/f77-edit-i-in.f: xfail for mmix-knuth-mmixware. * g77.f-torture/execute/io0.x, g77.f-torture/execute/io1.x, g77.f-torture/execute/20001201.x, g77.f-torture/execute/u77-test.x: New files. From-SVN: r51771
2002-04-03wint_t-1.c: Mark excess errors for mmix-knuth-mmixware.Hans-Peter Nilsson3-0/+7
* gcc.dg/wint_t-1.c: Mark excess errors for mmix-knuth-mmixware. * gcc.dg/wchar_t-1.c: Ditto. From-SVN: r51770
2002-04-02* doc/standards.texi: Document required freestanding libc entry points.Richard Henderson2-4/+18
From-SVN: r51768
2002-04-02rs6000.md (ctrdi*): Add FPR constraint and associated splitter.Alan Modra2-31/+76
2002-04-02 Alan Modra <amodra@bigpond.net.au> * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and associated splitter. Remove MQ constraint. (ctrdi_internal4): Correct CCmode clobber. From-SVN: r51767
2002-04-02natClassLoader.cc (findClass): Compare against `3', not `0'.Tom Tromey2-2/+8
* java/lang/natClassLoader.cc (findClass): Compare against `3', not `0'. From-SVN: r51764
2002-04-0220020402-1.c: New test.Franz Sirl2-0/+45
2002-04-02 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> * gcc.c-torture/execute/20020402-1.c: New test. From-SVN: r51762
2002-04-02milli64.S ($$dyncall): New function.John David Anglin3-11/+37
* milli64.S ($$dyncall): New function. * t-linux (LIB1ASMFUNCS): Revise module list. (LIB1ASMSRC): Use pa/milli64.S. From-SVN: r51760
2002-04-02inclhack.def (AAB_solaris_sys_varargs_h): Move and rename solaris_sys_varargs_h.Richard Henderson3-55/+60
* fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and rename solaris_sys_varargs_h. From-SVN: r51759
2002-04-02Remove previous deltaNick Clifton2-11/+1
From-SVN: r51757
2002-04-02mauve-libgcj: add java.net.DatagramSocket.DatagramSocketTest2 to list of ↵Mark Wielaard2-0/+6
testsuite crashers. * mauve-libgcj: add java.net.DatagramSocket.DatagramSocketTest2 to list of testsuite crashers. From-SVN: r51753
2002-04-02IdentityHashMap.java (put): Set new threshold correctly when resizing table.Bryce McKinlay2-1/+6
* java/util/IdentityHashMap.java (put): Set new threshold correctly when resizing table. From-SVN: r51751
2002-04-02(output_return_instruction): Do not create the conditional part of the ↵Nick Clifton2-1/+10
return instruction... (output_return_instruction): Do not create the conditional part of the return instruction, if there is no condition to be used. From-SVN: r51750
2002-04-02Makefile.am (install-data-local): Use mkinstalldirs.Phil Edwards3-30/+37
2002-04-02 Phil Edwards <pme@gcc.gnu.org> * include/Makefile.am (install-data-local): Use mkinstalldirs. * include/Makefile.in: Regenerate. From-SVN: r51747
2002-04-02basic_string.h (replace(i1, i2, _CharT* k1, _CharT* k2), [...]): New ↵Paolo Carlini4-14/+87
specializations to optimize for the common cases of pointers and iterators. 2002-04-02 Paolo Carlini <pcarlini@unitus.it> Nathan Myers <ncm@cantrip.org> Philip Martin <philip@codematters.co.uk> * include/bits/basic_string.h (replace(i1, i2, _CharT* k1, _CharT* k2), replace(i2, i2, const _CharT* k1, const _CharT* k2), replace(i1, i2, iterator k1, iterator k2, replace(i1, i2, const_iterator k1, const_iterator k2): New specializations to optimize for the common cases of pointers and iterators. (replace(pos, n1, s, n2)): Tweak. * include/bits/basic_string.tcc: Tweak comments. * testsuite/21_strings/replace.cc (test04): New tests. Co-Authored-By: Nathan Myers <ncm@cantrip.org> Co-Authored-By: Philip Martin <philip@codematters.co.uk> From-SVN: r51746
2002-04-02stor-layout.c (layout_type, [...]): Give one-element array the same mode as ↵Richard Kenner2-2/+12
its component. * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array the same mode as its component. From-SVN: r51745
2002-04-02re PR rtl-optimization/190 (Optimization bug for x86 target)Richard Henderson4-1/+15
PR opt/190 * final.c (this_is_asm_operands): Export. * output.h (this_is_asm_operands): Declare. * config/i386/i386.c (print_operand): Error odd asm operands. From-SVN: r51741
2002-04-02Daily bump.GCC Administrator6-6/+6
From-SVN: r51740
2002-04-02* config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.Richard Henderson2-2/+54
From-SVN: r51736
2002-04-02acinclude: More extensive checks for msgfmt, --enable-nls.Benjamin Kosnik12-1154/+1214
2002-04-01 Benjamin Kosnik <bkoz@redhat.com> libstdc++/5542 * acinclude: More extensive checks for msgfmt, --enable-nls. * aclocal.m4: Regenerate. * configure: Regenerate. From-SVN: r51732
2002-04-02exception (__verbose_terminate_handler): Point to docs.Phil Edwards7-10/+167
2002-04-01 Phil Edwards <pme@gcc.gnu.org> * libsupc++/exception (__verbose_terminate_handler): Point to docs. * docs/doxygen/doxygroups.cc: Doxygen hooks for abi::__cxa_demangle. * docs/html/18_support/howto.html: Document the demangler. * docs/html/17_intro/howto.html: And link to it. * docs/doxygen/mainpage.html: Describe user-vs-maintainer docs. * docs/doxygen/run_doxygen: Print user-vs-maintainer. From-SVN: r51730
2002-04-01inclhack.def (solaris_sys_varargs_h): New.Richard Henderson3-2/+62
* fixinc/inclhack.def (solaris_sys_varargs_h): New. * fixinc/fixincl.x: Rebuild. From-SVN: r51729
2002-04-01* gcc.c-torture/compile/920625-1.x: XFAIL -O1.Richard Henderson2-1/+3
From-SVN: r51726
2002-04-01unwind-ia64.c: Include ia64intrin.h.Richard Henderson2-32/+190
* config/ia64/unwind-ia64.c: Include ia64intrin.h. (atomic_alloc, atomic_free): New. (SIZE, MASK_FOR, PTR_IN): New. (emergency_reg_state, emergency_reg_state_free): New. (emergency_labeled_state, emergency_labeled_state_free): New. (reg_state_alloced, labeled_state_alloced): New. (alloc_reg_state, free_reg_state): New. (alloc_label_state, free_label_state, free_label_states): New. (push, pop, dup_state_stack, free_state_stack): Use them. (desc_label_state): Likewise. (uw_frame_state_for): Free label states and state stack. (uw_update_reg_address): Eliminate warnings. From-SVN: r51722
2002-04-01pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON, [...]): Redefine them.Vladimir Makarov2-0/+28
2002-04-01 Vladimir Makarov <vmakarov@redhat.com> * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL): Redefine them. From-SVN: r51713