Commit Graph

53144 Commits

Author SHA1 Message Date
Daniel Jacobowitz
b9e8f4b38e strerror.c: Don't provide or reference sys_errlist if strerror is available.
* strerror.c: Don't provide or reference sys_errlist if
	strerror is available.

From-SVN: r72001
2003-10-01 23:12:37 +00:00
Alexandre Oliva
b2218cc139 output.h (compute_reloc_for_constant): Declare.
* 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-01 22:57:57 +00:00
John David Anglin
2ce240d34e aclocal.m4: Add hpux10* and hpux11.00 to /dev/zero blacklist.
* aclocal.m4: Add hpux10* and hpux11.00 to /dev/zero blacklist.
	* configure: Rebuilt.

From-SVN: r71999
2003-10-01 22:52:09 +00:00
Tom Tromey
d638363161 * gnu/gcj/runtime/FirstThread.java (getMain): Fixed indentation.
From-SVN: r71998
2003-10-01 22:41:10 +00:00
Richard Kenner
1358cdc5fe fold-const.c (make_range): When handling unsigned, don't reverse range if 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-01 16:48:57 -04:00
Rainer Orth
222a5b1d67 linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0): Define.
* 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-01 20:45:59 +00:00
Alexandre Oliva
64177a6d2f config/frv/frv.h (PREDICATE_CODES): Added condexec_si_media_operator...
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-01 20:15:43 +00:00
John David Anglin
fecba15f01 aclocal.m4: Add ultrix* to /dev/zero blacklist.
* aclocal.m4: Add ultrix* to /dev/zero blacklist.
	* configure: Rebuilt.

From-SVN: r71987
2003-10-01 19:25:36 +00:00
Rainer Orth
c14aea876f except.h (MUST_USE_SJLJ_EXCEPTIONS): Revert 2003-09-23 change.
* 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-01 18:54:46 +00:00
H.J. Lu
c0590bfdf1 configure.in: Check if $MAKEINFO is missing.
2003-10-01  H.J. Lu  <hongjiu.lu@intel.com>

	* configure.in: Check if $MAKEINFO is missing.
	* configure: Regenerated.

From-SVN: r71983
2003-10-01 10:11:29 -07:00
Andreas Tobler
7a54c8507f libffi-dg.exp: Set LD_LIBRARY_PATH_64 for SPARC64.
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-01 19:11:02 +02:00
Nathan Myers
e39dd1ce52 locale_facets.tcc (time_put::put): Avoid expensive *__s++, in favor of *__s, ++__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-01 16:58:38 +00:00
Andrew Haley
9dfc2ec225 jcf-parse.c (java_parse_file): Write otable and atable.
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-01 16:22:13 +00:00
Paolo Carlini
530ce5517c locale_facets.tcc (time_put::put): Minor tweak to the previous commit.
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-01 15:43:07 +00:00
Paolo Carlini
52a16d0815 re PR libstdc++/12439 (Problems in time_put::put)
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-01 14:32:05 +00:00
David S. Miller
d00eacabf4 linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefine before redefining.
* 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-01 14:55:41 +02:00
Steven Bosscher
6640377c03 cris-protos.h, cris.c: Convert to ISO C90 function declarations and definitions.
* config/cris/cris-protos.h, config/cris/cris.c: Convert to ISO
	C90 function declarations and definitions.

From-SVN: r71972
2003-10-01 12:43:23 +00:00
Nathanael Nerode
3fc87ac147 * config.gcc (cris-*-linux*): Revert mistaken commit.
From-SVN: r71970
2003-10-01 11:14:01 +00:00
Eric Botcazou
8ee37f152b re PR rtl-optimization/11753 (%o7 register being used immediately in the 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-10-01 06:08:35 +00:00
Richard Henderson
ed80cd6809 dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Honor 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-09-30 23:01:47 -07:00
GCC Administrator
6ab7003d15 Daily bump.
From-SVN: r71963
2003-10-01 00:16:08 +00:00
Kaveh Ghazi
e7b917081c Add note about PR 6222 fixed by prior patch
From-SVN: r71961
2003-09-30 23:06:14 +00:00
Kaveh Ghazi
acad01a577 Add PR 9200 to prior patch
From-SVN: r71960
2003-09-30 23:01:17 +00:00
Richard Henderson
69ee808667 * decl.c (duplicate_decls): Copy DECL_SAVED_INSNS too.
From-SVN: r71959
2003-09-30 15:58:39 -07:00
Kelley Cook
bf9d3c2774 Convert to ISO C90 prototypes.
From-SVN: r71957
2003-09-30 21:49:01 +00:00
Kelley Cook
6594e599c3 cygwin1.c: Convert to ISO C90 prototypes.
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-30 21:28:09 +00:00
Kazu Hirata
518723777f fold-const.c (fold): Fold (A & ~B) - (A & B) into (A ^ B) - B for any B.
* fold-const.c (fold): Fold (A & ~B) - (A & B) into
	(A ^ B) - B for any B.

From-SVN: r71953
2003-09-30 21:07:41 +00:00
Paolo Carlini
ae7c3ba55f stl_algo.h: Minor cosmetic reformattings.
2003-09-30  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/stl_algo.h: Minor cosmetic reformattings.

From-SVN: r71950
2003-09-30 20:16:28 +00:00
Roger Sayle
d186e676b6 jcf-write.c (generate_bytecode_insns): Implement evaluate-once semantics for 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-30 18:24:33 +00:00
Nathanael Nerode
8cefb55d77 config.gcc (arm*-*-kaos*, [...]): Disable fixproto.
* config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
	powerpcle-*-kaos*, strongarm-*-kaos*): Disable fixproto.

From-SVN: r71948
2003-09-30 17:23:47 +00:00
Paolo Carlini
cbc6c296e6 stl_algo.h (search_n): Tweak, to spare the first --__n.
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-30 17:03:52 +00:00
Paolo Carlini
2ea247d376 12352.cc: Explicitly qualify exception name.
2003-09-30  Paolo Carlini  <pcarlini@unitus.it>

	* testsuite/22_locale/locale/cons/12352.cc: Explicitly
	qualify exception name.

From-SVN: r71945
2003-09-30 15:19:33 +00:00
Paolo Carlini
155f6fbb62 re PR libstdc++/12438 (Memory leak in locale::combine())
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-30 13:44:59 +00:00
Gabriel Dos Reis
daafa301e4 decl.c (pop_binding): Don't mess with nullifying binding->scope here.
* 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 11:56:25 +00:00
Richard Earnshaw
5fb1287933 * arm/ieee754-sf.S: Tidy formatting.
From-SVN: r71941
2003-09-30 10:38:10 +00:00
Nicolas Pitre
6a436e5e45 Nicolas Pitre <nico@cam.org>
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-30 10:30:32 +00:00
Richard Earnshaw
47edf59e90 Nicolas Pitre <nico@cam.org>
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 10:21:41 +00:00
Nathanael Nerode
ec2a60b0c4 * config.gcc: Default use_fixproto to 'no'.
From-SVN: r71938
2003-09-30 10:16:39 +00:00
Paolo Carlini
70863cbd39 PR libstdc++/12352 (cont)
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
2003-09-30 07:28:51 +00:00
Richard Sandiford
573850d4cb re PR rtl-optimization/12345 (internal compiler error: verify_flow_info failed)
PR optimization/12345
	* config/mips/mips-protos.h (mips_restore_gp): Remove.
	(mips_gp_save_slot): Declare.
	* config/mips/mips.c (mips_restore_gp): Remove in favor of...
	(mips_gp_save_slot): ...this new function.
	* config/mips/mips.md (exception_receiver): Use mips_gp_save_slot
	and mips_output_move to generate the output template.
	(call_internal): Force splitting if TARGET_SPLIT_CALLS.  Don't emit
	a gp load after a noreturn call.  Load the gp using a move rather
	than an exception_receiver pattern.
	(call_value_internal, call_value_multiple_internal): Likewise.
	(call_split, call_value_split, call_value_multiple_split): Clobber $28.

From-SVN: r71935
2003-09-30 07:14:39 +00:00
GCC Administrator
3c44a3c4b7 Daily bump.
From-SVN: r71929
2003-09-30 00:16:07 +00:00
Carlo Wood
b82c4660a5 re PR debug/12319 (Wrong DW_AT_low_pc and DW_AT_high_pc for DW_TAG_inlined_subroutine)
PR debug/12319
* cfglayout.c (insn_scope):  Use prologue_locator and
epilogue_locator; return the outer function scope for
pro- and epilogue insns.

From-SVN: r71926
2003-09-29 23:09:12 +00:00
Carlo Wood
6fe2eacc48 MAINTAINERS (Write After Approval): Add myself.
2003-09-30  Carlo Wood  <carlo@alinoe.com>

* MAINTAINERS (Write After Approval): Add myself.

From-SVN: r71925
2003-09-29 22:51:00 +00:00
Zack Weinberg
563556ca7a objc-act.c (encode_type): Encode INTEGER_TYPEs and REAL_TYPEs based on the bitsize of the type's mode...
* objc/objc-act.c (encode_type): Encode INTEGER_TYPEs and
	REAL_TYPEs based on the bitsize of the type's mode, not the
	mode directly.

From-SVN: r71923
2003-09-29 22:28:58 +00:00
Zack Weinberg
21e6f0257f target.c (FFETARGET_ATOF_): Delete.
f:
	* target.c (FFETARGET_ATOF_): Delete.
	(ffetarget_real1, ffetarget_real2): Use real_from_string directly.
	* target.h (FFETARGET_REAL_VALUE_FROM_INT_,
	FFETARGET_REAL_VALUE_FROM_LONGLONG_): Use mode_for_size,
	don't refer to SFmode or DFmode directly.

From-SVN: r71922
2003-09-29 22:21:15 +00:00
Zack Weinberg
783be936d2 trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to initialize dconstp5 and dconstmp5.
ada:
	* trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
	initialize dconstp5 and dconstmp5.

From-SVN: r71921
2003-09-29 22:14:01 +00:00
Rainer Orth
9d34041928 dwarf2out.c (default_eh_frame_section): Split into ...
* dwarf2out.c (default_eh_frame_section): Split into ...
	(named_section_eh_frame_section, collect2_eh_frame_section): ... new
	functions.
	* output.h (named_section_eh_frame_section): Declare.
	(collect2_eh_frame_section): Likewise.

From-SVN: r71920
2003-09-29 22:07:39 +00:00
Zack Weinberg
bc800bb247 * real.c (real_sqrt): Use get_canonical_qnan directly.
From-SVN: r71919
2003-09-29 21:59:58 +00:00
Zack Weinberg
d464f1b822 * dwarf2out.c (add_const_value_attribute): Use real_to_target.
From-SVN: r71918
2003-09-29 21:52:25 +00:00
Zack Weinberg
b409761a1f varasm.c (assemble_real): Use real_to_target directly...
* varasm.c (assemble_real): Use real_to_target directly,
	calculate the number of significant elements of the result
	array and write them out in a loop, instead of using a giant
	switch statement to pick the correct REAL_VALUE_TO_TARGET_*
	macro.

From-SVN: r71917
2003-09-29 21:29:11 +00:00