aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2003-10-02c-opts.c (c_common_post_options): Don't call cpp_find_main_file yet.Per Bothner2-13/+18
* c-opts.c (c_common_post_options): Don't call cpp_find_main_file yet. (c_common_parse_file): No longer need to call cpp_read_main_file when file_index > 0 (as in multi-file or server compiation). (finish_options): Change to <built-in> is an LC_ENTER, not LC_RENAME as this now happens before cpp_push_main_file. (push_command_line_include): When done with options, pass LC_LEAVE instead of LC_RENAME to cpp_change_file and finally cpp_push_main_file. (fe_file_change): Handle NULL new_map, and simplify. From-SVN: r72015
2003-10-02cppinit.c (cpp_read_main_file): Split into two functions: Distribute ↵Per Bothner6-63/+83
_cpp_stack_file call over the two functions. * cppinit.c (cpp_read_main_file): Split into two functions: Distribute _cpp_stack_file call over the two functions. (cpp_find_main_file): New function. Don't call _cpp_do_file_change even if working_directory flag set. (cpp_push_main_file): New function. * cppfiles.c (_cpp_find_failed): New helper function. (find_file): Made non-static and renamed to _cpp_find_file. (_cpp_stack_file): No longer needed. But note the following. (stack_file): Made non-static and renamed to _cpp_stack_file. * fix-header.c (cpp_read_main_file): Replace cpp_read_main_file call with calls to cpp_find_main_file and cpp_push_main_file. (search_path_head): If there is no current buffer, use main_file. * cpphash.h: Update function declarations. * cpplib.h: Update function declarations. From-SVN: r72014
2003-10-02cpplex.c (_cpp_get_fresh_line): Revert my no-longer-needed 08-28 change...Per Bothner3-14/+15
* cpplex.c (_cpp_get_fresh_line): Revert my no-longer-needed 08-28 change, since we're never called with a NULL buffer. (_cpp_lex_direct): Likewise. * cpptrad.c (_cpp_read_logical_line_trad): Likewise. Return false if buffer is NULL at end. * cpplex.c (_cpp_get_fresh_line): Return value now just depends on whether pfile->buffer is NULL after pop, ignoring return_at_eof. From-SVN: r72013
2003-10-02re PR libgcj/12475 (Stack traces leak memory)Bryce McKinlay3-1/+13
Fix PR libgcj/12475 * gnu/gcj/runtime/StackTrace.java (finalize): Declare. * gnu/gcj/runtime/natStackTrace.cc (finalize): New. Free "addrs". From-SVN: r72012
2003-10-02c-lex.c (fe_file_change): Handle a NULL new_map.Per Bothner4-18/+31
* c-lex.c (fe_file_change): Handle a NULL new_map. * fix-header.c (cb_file_change): Likewise. * c-ppoutput.c (pp_file_change): Likewise. From-SVN: r72011
2003-10-01c-lex.c (src_line): Remove unneeded static variable.Per Bothner2-9/+8
* c-lex.c (src_line): Remove unneeded static variable. (cb_line_change): Set input_line directly, instead of src_line. (get_non_padding_token): We no longer need to compensate for the "horrible things" the C++ front-end does with the current line number, From-SVN: r72010
2003-10-02target.h (init_libfuncs): New hook.Zack Weinberg56-1065/+738
* target.h (init_libfuncs): New hook. * target-def.h: Default TARGET_INIT_BUILTINS and TARGET_INIT_LIBFUNCS to hook_void_void. Add TARGET_INIT_LIBFUNCS to TARGET_INITIALIZER. * builtins.c (default_init_builtins): Delete. * expr.h (default_init_builtins): Delete prototype. * doc/tm.texi: Document TARGET_INIT_LIBFUNCS and US_SOFTWARE_GOFAST. Tweak documentation of TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL. Remove documentation of INIT_TARGET_OPTABS, MULSI3_LIBCALL, DIVSI3_LIBCALL, UDIVSI3_LIBCALL, MODSI3_LIBCALL, UMODSI3_LIBCALL, MULDI3_LIBCALL, DIVDI3_LIBCALL, UDIVDI3_LIBCALL, MODDI3_LIBCALL, and UMODDI3_LIBCALL, * Makefile.in (optabs.o): Depends on target.h. * defaults.h: Provide default for FLOAT_LIB_COMPARE_RETURNS_BOOL. * optabs.c: Include target.h. (prepare_float_lib_cmp): No need for #ifdef around use of FLOAT_LIB_COMPARE_RETURNS_BOOL. (set_optab_libfunc): New function. (init_optabs): Delete use of all *_LIBCALL defines. Call targetm.init_libfuncs not INIT_TARGET_OPTABS. * optabs.h: Prototype set_optab_libfunc. * config.gcc: Remove all references to pa/long_double.h, ia64/hpux_longdouble.h, and gofast.h. (mips-*-*): When --enable-gofast, just add US_SOFTWARE_GOFAST to tm_defines; don't set INIT_SUBTARGET_OPTABS or change tm_file. * config/alpha/alpha.c, config/c4x/c4x.c, config/cris/cris.c * config/frv/frv.c, config/h8300/h8300.c, config/i860/i860.c * config/ia64/ia64.c, config/ip2k/ip2k.c, config/m68hc11/m68hc11.c * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c * config/sparc/sparc.c, config/vax/vax.c: Provide a definition for TARGET_INIT_LIBFUNCS. Where necessary, include optabs.h, libfuncs.h, and/or config/gofast.h. * config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.h * config/avr/avr.h, config/cris/cris.h, config/frv/frv.h * config/h8300/h8300.h, config/i860/i860.h, config/ip2k/ip2k.h * config/iq2000/iq2000.h, config/m68hc11/m68hc11.h, config/mips/mips.h * config/rs6000/aix.h, config/rs6000/sysv4.h, config/sparc/elf.h * config/sparc/lite.h, config/sparc/netbsd-elf.h, config/sparc/sol2.h * config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h * config/vax/elf.h: Don't define or use INIT_TARGET_OPTABS, INIT_SUBTARGET_OPTABS, or any *_LIBCALL macros. * config/ia64/hpux.h: Redefine INTEL_EXTENDED_IEEE_FORMAT to 0. Set TARGET_INIT_LIBFUNCS and FLOAT_LIB_COMPARE_RETURNS_BOOL here. * config/pa/pa-hpux.h: Define LONG_DOUBLE_TYPE_SIZE, HPUX_LONG_DOUBLE_LIBRARY, and FLOAT_LIB_COMPARE_RETURNS_BOOL here. * config/ia64/hpux_longdouble.h, config/pa/long_double.h: Delete. * config/rs6000/xcoff.h: Don't define RS6000_ITRUNC nor RS6000_UITRUNC. * config/sparc/sparc.h: Default SUN_CONVERSION_LIBFUNCS and SUN_INTEGER_MULTIPLY_64 to 0. * config/sparc/sol2.h: Redefine SUN_CONVERSION_LIBFUNCS and SUN_INTEGER_MULTIPLY_64 to 1. * config/sparc/elf.h: Redefine SUN_CONVERSION_LIBFUNCS and SUN_INTEGER_MULTIPLY_64 to 0. * config/sparc/lite.h, config/sparc/liteelf.h, config/sparc/sp86x-elf.h: Define US_SOFTWARE_GOFAST. * config/vax/vax.h: Default TARGET_ELF to 0. * config/vax/elf.h: Redefine TARGET_ELF to 1. * config/gofast.h: Don't define any macros here. Provide one static function, gofast_maybe_init_libfuncs, which does what INIT_GOFAST_LIBFUNCS used to do but only if US_SOFTWARE_GOFAST is already defined. Do not clear negation libfuncs. Do not mess with HFmode, XFmode, or TFmode libfuncs. * config/avr/avr.c (avr_init_once): #if 0 out; mark FIXME. From-SVN: r72009
2003-10-02Daily bump.GCC Administrator2-2/+2
From-SVN: r72007
2003-10-02/tmp/cvs001644Kelley Cook5-5/+28
From-SVN: r72005
2003-10-01xm-iris5.h: Remove, unnecessary.Rainer Orth5-21/+11
* config/mips/xm-iris5.h: Remove, unnecessary. * config.build (mips-sgi-irix5*): Remove. (mips-sgi-irix6*o32): Likewise. * config.gcc (mips-sgi-irix6*o32): Remove xm_file. (mips-sgi-irix5cross64): Likewise. (mips-sgi-irix5*): Likewise. * config.host (mips-sgi-irix5*): Remove. (mips-sgi-irix6*o32): Likewise. From-SVN: r72003
2003-10-01dbxout.c (dbxout_fptype_value): Delete.Zack Weinberg2-62/+11
* dbxout.c (dbxout_fptype_value): Delete. (dbxout_type): Emit R3 for all COMPLEX_TYPEs. From-SVN: r72002
2003-10-01strerror.c: Don't provide or reference sys_errlist if strerror is available.Daniel Jacobowitz2-1/+13
* strerror.c: Don't provide or reference sys_errlist if strerror is available. From-SVN: r72001
2003-10-01output.h (compute_reloc_for_constant): Declare.Alexandre Oliva3-19/+80
* output.h (compute_reloc_for_constant): Declare. * varasm.c (compute_reloc_for_constant): Extract from... (output_addressed_constants): ... here. Adjust all callers. From-SVN: r72000
2003-10-01aclocal.m4: Add hpux10* and hpux11.00 to /dev/zero blacklist.John David Anglin3-2/+7
* aclocal.m4: Add hpux10* and hpux11.00 to /dev/zero blacklist. * configure: Rebuilt. From-SVN: r71999
2003-10-01* gnu/gcj/runtime/FirstThread.java (getMain): Fixed indentation.Tom Tromey2-14/+17
From-SVN: r71998
2003-10-01fold-const.c (make_range): When handling unsigned, don't reverse range if ↵Richard Kenner2-4/+9
high bound is zero. * fold-const.c (make_range): When handling unsigned, don't reverse range if high bound is zero. From-SVN: r71991
2003-10-01linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0): Define.Rainer Orth7-13/+188
* linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0): Define. (GLIBCXX_CHECK_STDLIB_SUPPORT): Use it to test for lrand48 instead of drand48. * acconfig.h (HAVE_DRAND48): Renamed to HAVE_LRAND48. * crossconfig.m4 (*-freebsd*): Define HAVE_LRAND48 instead of HAVE_DRAND48. * config.h.in, configure: Regenerate. * include/bits/stl_algo.h: Use _GLIBCXX_HAVE_LRAND48 to guard lrand48 use. From-SVN: r71990
2003-10-01config/frv/frv.h (PREDICATE_CODES): Added condexec_si_media_operator...Alexandre Oliva2-2/+10
config/frv/frv.h (PREDICATE_CODES): Added condexec_si_media_operator, condexec_sf_add_operator and condexec_sf_conv_operator. Removed condexec_sf_binary_operator and condexec_sf_unary_operator. From-SVN: r71989
2003-10-01aclocal.m4: Add ultrix* to /dev/zero blacklist.John David Anglin3-3/+8
* aclocal.m4: Add ultrix* to /dev/zero blacklist. * configure: Rebuilt. From-SVN: r71987
2003-10-01except.h (MUST_USE_SJLJ_EXCEPTIONS): Revert 2003-09-23 change.Rainer Orth3-6/+17
* except.h (MUST_USE_SJLJ_EXCEPTIONS): Revert 2003-09-23 change. Allow override. * doc/tm.texi (MUST_USE_SJLJ_EXCEPTIONS): Document. From-SVN: r71985
2003-10-01configure.in: Check if $MAKEINFO is missing.H.J. Lu3-17/+43
2003-10-01 H.J. Lu <hongjiu.lu@intel.com> * configure.in: Check if $MAKEINFO is missing. * configure: Regenerated. From-SVN: r71983
2003-10-01libffi-dg.exp: Set LD_LIBRARY_PATH_64 for SPARC64.Andreas Tobler2-13/+19
2003-10-01 Andreas Tobler <a.tobler@schweiz.ch> * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_64 for SPARC64. Cleanup whitespaces. From-SVN: r71982
2003-10-01locale_facets.tcc (time_put::put): Avoid expensive *__s++, in favor of *__s, ↵Nathan Myers2-1/+9
++__s. 2003-10-01 Nathan Myers <ncm@cantrip.org> * include/bits/locale_facets.tcc (time_put::put): Avoid expensive *__s++, in favor of *__s, ++__s. From-SVN: r71980
2003-10-01jcf-parse.c (java_parse_file): Write otable and atable.Andrew Haley12-152/+473
2003-10-01 Andrew Haley <aph@redhat.com> * jcf-parse.c (java_parse_file): Write otable and atable. * java-tree.h (atable_methods): New. (atable_decl): New. (atable_syms_decl): New. (enum java_tree_index): Add JTI_ATABLE_METHODS, JTI_ATABLE_DECL, JTI_ATABLE_SYMS_DECL. Rename JTI_METHOD_SYMBOL* to JTI_SYMBOL*. (symbol_*type): Rename method_symbol* to symbol*type. (emit_offset_symbol_table): Delete. (emit_symbol_table): New. (get_symbol_table_index): New. (atable_type): New. * expr.c (build_field_ref): Handle flag_indirect_dispatch. (build_known_method_ref): Likewise. (get_symbol_table_index): Rename from get_offset_table_index. Parameterize to allow re-use by differing types of symbol table. (build_invokevirtual): Pass table to get_offset_table_index. * decl.c (java_init_decl_processing): Push types and decls for atable and atable_syyms. * class.c (build_static_field_ref): Handle flag_indirect_dispatch. (make_class_data): Add new fields atable and atable_syms. (emit_symbol_table): Rename from emit_offset_symbol_table. Parameterize to allow re-use by different types of symbol table. (build_symbol_entry): Renamed from build_method_symbols_entry. 2003-10-01 Andrew Haley <aph@redhat.com> * java/lang/natClass.cc (initializeClass): Check for otable and atable. (_Jv_LinkOffsetTable): Check for existence of atable. Rewrite loops using for(). Search superinterfaces. Check for fields as well as methods. Initialize atable as well as otable: check for static methods as well as virtual methods. * java/lang/Class.h (struct _Jv_AddressTable): New. (atable): New. (atable_syms): New. * include/jvm.h (_Jv_equalUtf8Consts): constify. * prims.cc (_Jv_equalUtf8Consts): constify. From-SVN: r71979
2003-10-01locale_facets.tcc (time_put::put): Minor tweak to the previous commit.Paolo Carlini2-3/+8
2003-10-01 Paolo Carlini <pcarlini@unitus.it> * include/bits/locale_facets.tcc (time_put::put): Minor tweak to the previous commit. From-SVN: r71977
2003-10-01re PR libstdc++/12439 (Problems in time_put::put)Paolo Carlini7-10/+329
2003-10-01 Paolo Carlini <pcarlini@unitus.it> PR libstdc++/12439 * include/bits/locale_facets.tcc (time_put::put): Deal with the three issues pointed out by the PR. * testsuite/22_locale/time_put/put/char/12439_1.cc: New. * testsuite/22_locale/time_put/put/char/12439_3.cc: New. * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc: New. * testsuite/22_locale/time_put/put/wchar_t/12439_2.cc: New. * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc: New. From-SVN: r71976
2003-10-01linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefine before redefining.David S. Miller3-0/+8
* config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefine before redefining. * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise. From-SVN: r71973
2003-10-01cris-protos.h, cris.c: Convert to ISO C90 function declarations and definitions.Steven Bosscher3-185/+111
* config/cris/cris-protos.h, config/cris/cris.c: Convert to ISO C90 function declarations and definitions. From-SVN: r71972
2003-10-01* config.gcc (cris-*-linux*): Revert mistaken commit.Nathanael Nerode2-1/+5
From-SVN: r71970
2003-10-01re PR rtl-optimization/11753 (%o7 register being used immediately in the ↵Eric Botcazou2-2/+12
delay slot before a call with -O2) PR optimization/11753 * config/sparc/sparc.md (length attribute) [fcc branch]: Add 1 to the length in the non-V9 case. From-SVN: r71968
2003-09-30dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Honor ↵Richard Henderson7-16/+88
DWARF_ALT_FRAME_RETURN_COLUMN. * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Honor DWARF_ALT_FRAME_RETURN_COLUMN. * unwind-dw2.c (dwarf_reg_size_table): Expand by one. (_Unwind_GetGR, _Unwind_SetGR): Validate lookup column. (uw_frame_state_for): Return end-of-stack for null return address. * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Add. * config/alpha/alpha.c (alpha_sa_mask): Add r31 for eh_return. (alpha_expand_prologue): Store a zero for it. (alpha_expand_epilogue): Don't reload it. * config/alpha/alpha.h (DWARF_ALT_FRAME_RETURN_COLUMN): New. * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Use column 64 for the sigframe return address. From-SVN: r71967
2003-10-01Daily bump.GCC Administrator2-2/+2
From-SVN: r71963
2003-09-30Add note about PR 6222 fixed by prior patchKaveh Ghazi1-0/+1
From-SVN: r71961
2003-09-30Add PR 9200 to prior patchKaveh Ghazi1-0/+1
From-SVN: r71960
2003-09-30* decl.c (duplicate_decls): Copy DECL_SAVED_INSNS too.Richard Henderson2-1/+8
From-SVN: r71959
2003-09-30Convert to ISO C90 prototypes.Kelley Cook6-11/+16
From-SVN: r71957
2003-09-30cygwin1.c: Convert to ISO C90 prototypes.Kelley Cook4-8/+11
2003-09-30 Kelley Cook <kelleycoook@wideopenwest.com> * config/i386/cygwin1.c: Convert to ISO C90 prototypes. * config/i386/winnt.c: Likewise. * config/i386/cygming.h: Likewise. From-SVN: r71956
2003-09-30fold-const.c (fold): Fold (A & ~B) - (A & B) into (A ^ B) - B for any B.Kazu Hirata2-6/+7
* fold-const.c (fold): Fold (A & ~B) - (A & B) into (A ^ B) - B for any B. From-SVN: r71953
2003-09-30stl_algo.h: Minor cosmetic reformattings.Paolo Carlini2-10/+14
2003-09-30 Paolo Carlini <pcarlini@unitus.it> * include/bits/stl_algo.h: Minor cosmetic reformattings. From-SVN: r71950
2003-09-30jcf-write.c (generate_bytecode_insns): Implement evaluate-once semantics for ↵Roger Sayle2-1/+36
SAVE_EXPR... * jcf-write.c (generate_bytecode_insns): Implement evaluate-once semantics for SAVE_EXPR, by caching the result in a temporary. From-SVN: r71949
2003-09-30config.gcc (arm*-*-kaos*, [...]): Disable fixproto.Nathanael Nerode2-6/+6
* config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*, powerpcle-*-kaos*, strongarm-*-kaos*): Disable fixproto. From-SVN: r71948
2003-09-30stl_algo.h (search_n): Tweak, to spare the first --__n.Paolo Carlini2-6/+9
2003-09-30 Paolo Carlini <pcarlini@unitus.it> * include/bits/stl_algo.h (search_n): Tweak, to spare the first --__n. From-SVN: r71946
2003-09-3012352.cc: Explicitly qualify exception name.Paolo Carlini2-4/+9
2003-09-30 Paolo Carlini <pcarlini@unitus.it> * testsuite/22_locale/locale/cons/12352.cc: Explicitly qualify exception name. From-SVN: r71945
2003-09-30re PR libstdc++/12438 (Memory leak in locale::combine())Paolo Carlini4-2/+90
2003-09-30 Paolo Carlini <pcarlini@unitus.it> PR libstdc++/12438 * include/bits/locale_facets.tcc (locale::combine): Don't leak memory if _M_replace_facet throws. * testsuite/22_locale/locale/cons/12438.cc: New, from the PR. * include/bits/locale_classes.h (locale::locale(const locale&, _Facet*)): Tweak, use consistently _M_remove_reference. From-SVN: r71943
2003-09-30decl.c (pop_binding): Don't mess with nullifying binding->scope here.Gabriel Dos Reis3-8/+33
* decl.c (pop_binding): Don't mess with nullifying binding->scope here. * name-lookup.c: Re-format. (cxx_binding_free): Nullify binding->scope. From-SVN: r71942
2003-09-30* arm/ieee754-sf.S: Tidy formatting.Richard Earnshaw2-9/+14
From-SVN: r71941
2003-09-30Nicolas Pitre <nico@cam.org>Nicolas Pitre2-120/+236
Nicolas Pitre <nico@cam.org> * arm/lib1funcs.asm (ARM_DIV_MOD_BODY) split into ARM_DIV_BODY and ARM_MOD_BODY. (ARM_MOD_BODY): rewritten. added clz insns for __ARM_ARCH__ >= 5. (ARM_DIV_BODY): added clz insns for __ARM_ARCH__ >= 5, added better divisor alignment in the other case. (ARM_DIV2_ORDER): added, finds the order of a single bit divisor. (__divsi3, __udivsi3, __modsi3, __umodsi3): rewritten using the macros above, add fast exits for divisor >= dividend, etc. From-SVN: r71940
2003-09-30Nicolas Pitre <nico@cam.org>Richard Earnshaw3-9/+25
Nicolas Pitre <nico@cam.org> * arm/ieee754-df.S: split compilation of fixunsdfsi from L_fixdfsi target. * arm/t-arm-elf: add _fixunsdfsi target due to the above. From-SVN: r71939
2003-09-30* config.gcc: Default use_fixproto to 'no'.Nathanael Nerode2-127/+103
From-SVN: r71938
2003-09-30PR libstdc++/12352 (cont)Paolo Carlini2-82/+80
2003-09-30 Paolo Carlini <pcarlini@unitus.it> PR libstdc++/12352 (cont) * src/localename.cc (locale::_Impl::_Impl(const char*, size_t)): Don't leak __cloc; don't leak if any of the _M_init_facet(...) calls fail. (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak. (locale::_Impl::~_Impl): Don't do anything if !_M_facets, !_M_caches, !_M_names. From-SVN: r71936