Commit Graph

53360 Commits

Author SHA1 Message Date
GCC Administrator
1f1dc5bb85 Daily bump.
From-SVN: r72176
2003-10-07 00:16:06 +00:00
Roger Sayle
3a627503d6 i386.c (ix86_expand_setcc): Annotate the floating point comparison sequence with a REG_EQUAL note that...
* config/i386/i386.c (ix86_expand_setcc): Annotate the floating
	point comparison sequence with a REG_EQUAL note that describes
	the comparison's semantics.

From-SVN: r72173
2003-10-06 23:18:31 +00:00
Roger Sayle
c37b68d42a expr.c (expand_expr <COND_EXPR>): Handle the void type semantics of COND_EXPR when expanding the "A op 0 ? FOO ...
* expr.c (expand_expr <COND_EXPR>): Handle the void type semantics
	of COND_EXPR when expanding the "A op 0 ? FOO : A" optimizations.

From-SVN: r72172
2003-10-06 23:11:21 +00:00
Roger Sayle
37bf20eeb0 optabs.c (prepare_float_lib_cmp): Avoid searching for REG_RETVAL instruction by using LCT_CONST and then calling...
* optabs.c (prepare_float_lib_cmp): Avoid searching for REG_RETVAL
	instruction by using LCT_CONST and then calling emit_libcall_block
	ourselves.

Co-Authored-By: Zack Weinberg <zack@codesourcery.com>

From-SVN: r72171
2003-10-06 23:09:28 +00:00
Falk Hueffner
cd2ac05b77 re PR rtl-optimization/11974 (ICE building alpha glibc: in emit_move_insn, at expr.c:3206)
PR optimization/11974
* optabs.c (expand_unop): Promote libcall outmode according to
hard_libcall_value.

From-SVN: r72170
2003-10-06 23:06:09 +00:00
Zack Weinberg
70a01792d8 real.h (REAL_MODE_FORMAT): New macro.
* real.h (REAL_MODE_FORMAT): New macro.
	* c-cppbuiltin.c, optabs.c, real.c, config/alpha/alpha.c
	* config/c4x/c4x.c, config/i370/i370.c, config/i386/freebsd.h
	* config/i386/i386.c, config/i960/i960.c, config/ia64/ia64.c
	* config/m68k/m68k.c, config/mips/mips.c, config/rs6000/rs6000.c
	* config/vax/vax.c: Use REAL_MODE_FORMAT instead of referring
	directly to real_format_for_mode array, wherever possible.

From-SVN: r72168
2003-10-06 22:47:32 +00:00
Paolo Carlini
ba9b12d1d2 re PR libstdc++/11740 (ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask.)
2003-10-06  Paolo Carlini  <pcarlini@unitus.it>

	PR libstdc++/11740
	* config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is):
	Fix to actually return (M & m) != 0 as per 22.2.1.1.2.
	* config/locale/generic/ctype_members.cc: Same.
	* testsuite/22_locale/ctype/is/wchar_t/11740.cc: New.

From-SVN: r72167
2003-10-06 22:32:59 +00:00
Devang Patel
8a7a6f4ded Fix -feliminate-dwarf2-dups ICE.
gcc
       * dwarf2out.c (is_main_source): Remove variable.
       (dwarf2out_start_source_file): Do not check is_main_source.
       Do not reset is_main_source.
       (dwarf2out_init): Do not initialize is_main_source.

       testsuite
       * gcc.dg/debug/dwarf2-3.h: New test.
       * gcc.dg/debug/dwarf2-3.c: New test case for -feliminate-dwarf2-dups.

From-SVN: r72166
2003-10-06 15:25:19 -07:00
Rainer Orth
9a557707dd inclhack.def (stdio_va_list): Removed _ap fix.
* fixinc/inclhack.def (stdio_va_list): Removed _ap fix.
	(irix_stdio_va_list): Don't require leading printf, IRIX 6.5.21
	introduced some multi-line prototypes.
	* fixinc/fixincl.x: Regenerate.

From-SVN: r72165
2003-10-06 20:49:24 +00:00
Paolo Carlini
e4f7d0a18f locale_facets.tcc (__pad<>::_S_pad): Improve performance-wise...
2003-10-06  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/locale_facets.tcc (__pad<>::_S_pad):
	Improve performance-wise: avoid one traits::copy, avoid
	the __builtin_alloca, streamline.

From-SVN: r72164
2003-10-06 19:46:21 +00:00
Rainer Orth
d54f735472 ffi_mips.h: Define FFI_MIPS_N32 for N32/N64 ABIs, FFI_MIPS_O32 for O32 ABI.
* include/ffi_mips.h: Define FFI_MIPS_N32 for N32/N64 ABIs,
	FFI_MIPS_O32 for O32 ABI.

From-SVN: r72161
2003-10-06 19:18:35 +00:00
Robert Bowdidge
ffcc1cfc0c Adding my name to "write after approval" maintainers.
From-SVN: r72160
2003-10-06 11:25:13 -07:00
Richard Sandiford
d902180054 mips.h (PREDICATE_CODES): Add stack_operand.
* config/mips/mips.h (PREDICATE_CODES): Add stack_operand.
	* config/mips/mips.c (stack_operand): New predicate.
	* config/mips/mips.md: Use it for the destination of mips16 insns
	that store $31.

From-SVN: r72158
2003-10-06 17:52:37 +00:00
Richard Sandiford
4fef83a7dd mips.md (*lowsi): Renamed from lowsi.
* config/mips/mips.md (*lowsi): Renamed from lowsi.
	(*lowdi): Likewise lowdi.
	(*lowsi_mips16, *lowdi_mips16): New patterns.
	* config/mips/mips.c (mips_const_insns, mips_output_move): Remove
	mips16 CONSTANT_RELOC handling.
	(mips_delegitimize_address): Adjust for new sdata representation.

From-SVN: r72157
2003-10-06 17:50:26 +00:00
Richard Sandiford
ac1605d6d3 mips.c (mips_arg_info): If MUST_PASS_IN_STACK, skip any remaining register arguments.
* config/mips/mips.c (mips_arg_info): If MUST_PASS_IN_STACK,
	skip any remaining register arguments.

From-SVN: r72156
2003-10-06 17:48:25 +00:00
Ulrich Weigand
6357135a0e reload.c (find_reloads_subreg_address): Use correct offset for paradoxical MEM subregs on big-endian targets.
* reload.c (find_reloads_subreg_address): Use correct offset for
	paradoxical MEM subregs on big-endian targets.

From-SVN: r72153
2003-10-06 15:56:07 +00:00
Rainer Orth
fffeb871a1 ltcf-cxx.sh (irix5*, irix6*): Prefix -soname and its arg with ${wl}.
* ltcf-cxx.sh (irix5*, irix6*): Prefix -soname and its arg with ${wl}.
	* ltconfig (irix5*, irix6*): Don't override version_type.

From-SVN: r72152
2003-10-06 15:13:13 +00:00
Andrew Haley
83d865c57c tree.c (get_callee_fndecl): Call lang_hooks.lang_get_callee_fndecl.
2003-10-06  Andrew Haley  <aph@redhat.com>

	* tree.c (get_callee_fndecl): Call
	lang_hooks.lang_get_callee_fndecl.
	* langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): New.
	(lhd_get_callee_fndecl): New.

From-SVN: r72150
2003-10-06 13:50:41 +00:00
Andrew Pinski
75f604438c +2003-10-06 Andrew Pinski <apinski@apple.com> + + * config/darwin.c...
+2003-10-06  Andrew Pinski  <apinski@apple.com>
+
+	* config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
+	error in calculating the length of the string.
+	(machopic_stub_name): Likewise.

From-SVN: r72149
2003-10-06 06:35:36 -07:00
Roger Sayle
bd831d5cee optabs.c (prepare_float_lib_cmp): Attach a REG_EQUAL note describing the return value of the comparison libcall...
* optabs.c (prepare_float_lib_cmp):  Attach a REG_EQUAL note
	describing the return value of the comparison libcall to the
	REG_RETVAL instruction of the emitted sequence.

From-SVN: r72148
2003-10-06 12:48:49 +00:00
Eric Botcazou
9ebfd78bad re PR rtl-optimization/12215 (ICE in make_label_edge with -fnon-call-exceptions -fno-gcse -O2)
PR optimization/12215
	* cse.c (cse_set_around_loop): Emit the move at the beginning
	of the next basic block for trapping sets.

From-SVN: r72141
2003-10-06 09:18:01 +00:00
Eric Botcazou
8c03ca00a6 re PR rtl-optimization/11637 (g++ invalid assembly with -fnon-call-exceptions)
2003-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>

	PR optimization/11637
	* combine.c (adjust_for_new_dest): New function to adjust the
	notes and LOG_LINKS when the dest of an insn has changed.
	(try_combine): Use it when deleting the first insn of a two-insn
	parallel or splitting a two-load parallel.

From-SVN: r72138
2003-10-06 08:52:23 +00:00
Richard Sandiford
0cb733bf23 mips.c (mips_classify_constant): Only allow UNSPECs if TARGET_EXPLICIT_RELOCS.
* config/mips/mips.c (mips_classify_constant): Only allow UNSPECs
	if TARGET_EXPLICIT_RELOCS.

From-SVN: r72137
2003-10-06 08:02:54 +00:00
Andrew Pinski
77a7ed6029 fix off one error for one for all.
From-SVN: r72136
2003-10-06 00:56:37 -07:00
Mark Mitchell
62b81e4524 re PR bootstrap/12512 (Pattern rule for %.dvi breaks make dvi in objc)
PR bootstrap/12512
	* Makefile.in (info): Use double-colon rules.
	(dvi): Likewise.
	(generated-manpages): Likewise.
	* configure.in: Do not create lang.info, lang.dvi, or
	lang.generated-manpages hooks.
	* configure: Regenerated.
	* objc/Make-lang.in (objc.info): Remove.
	(objc.dvi): Remove.
	(objc.generated-manpages): Remove.
	* doc/sourcebuild.texi: Update description of info, dvi, and
	generated-manpages hooks.

	* Make-lang.in (ada.info): Replace with ...
	(info): ... this.
	(ada.dvi): Replace with ...
	(dvi): ... this.

	* Make-lang.in (c++.info): Remove.
	(c++.dvi): Remove.
	(c++.generated-manpages): Replace with ...
	(generated-manpages): ... this.

	* Make-lang.in (f77.info): Replace with ...
	(info): ... this.
	(f77.dvi): Replace with ...
	(dvi): ... this.
	(f77.generated-manpages): Replace with ...
	(generated-manpages): ... this.

	* Make-lang.in (java.info): Replace with ...
	(info): ... this.
	(java.dvi): Replace with ...
	(dvi): ... this.
	(java.generated-manpages): Replace with ...

	* Make-lang.in (treelang.info): Replace with ...
	(info): ... this.
	* Make-lang.in (treelang.dvi): Replace with ...
	(dvi): ... this.

From-SVN: r72135
2003-10-06 07:56:16 +00:00
Richard Sandiford
1332e95127 * config/mips/mips.md: Merge mips16 lw/srl pattern with its splitter
From-SVN: r72134
2003-10-06 07:53:16 +00:00
Andrew Pinski
96d053de31 one more off by one error.
From-SVN: r72133
2003-10-05 23:38:04 -07:00
Andrew Pinski
ea04c4a331 darwin.c (machopic_non_lazy_ptr_name): Fix off by one errors in memcpy destinations.
2003-10-05  Andrew Pinski  <apinski@apple.com>
        * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
        errors in memcpy destinations.
        (machopic_stub_name): Likewise.

From-SVN: r72132
2003-10-05 23:11:14 -07:00
Mohan Embar
6691a79e06 configure.in: Allow explicit specification of CFLAGS_FOR_BUILD.
* configure.in: Allow explicit specification of CFLAGS_FOR_BUILD.
	* configure: Rebuilt
	* Makefile.tpl: Use CFLAGS_FOR_BUILD computed by configure
	* Makefile.in: Rebuilt

From-SVN: r72130
2003-10-06 03:40:08 +00:00
Andrew Pinski
6e08ecd16c darwin.c (machopic_non_lazy_ptr_name): Change strcat to memcpy and add length together.
* config/darwin.c (machopic_non_lazy_ptr_name):
	Change strcat to memcpy and add length together.
	(machopic_stub_name): Likewise.

From-SVN: r72129
2003-10-05 18:36:13 -07:00
Kaz Kojima
522d2b3fcc linux.h (MD_FALLBACK_FRAME_STATE_FOR): Handle new signal trampoline codes.
* config/sh/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Handle new
	signal trampoline codes.

From-SVN: r72128
2003-10-06 01:24:53 +00:00
GCC Administrator
56ef49efae Daily bump.
From-SVN: r72125
2003-10-06 00:16:06 +00:00
Chris Demetriou
eb33bea0db mips.md (*divsf3): Move description of SB-1 F2 erratum from here to...
2003-10-05  Chris Demetriou  <cgd@broadcom.com>

        * config/mips/mips.md (*divsf3): Move description of
        SB-1 F2 erratum from here to...
        (divsf3): Here.  Disable if TARGET_FIX_SB1 is set and
        flag_unsafe_math_optimizations is not.

From-SVN: r72123
2003-10-05 16:57:56 -07:00
Aldy Hernandez
c9545f49d3 linuxspe.h: Define TARGET_SPE_ABI, TARGET_SPE, TARGET_E500, TARGET_ISEL, and TARGET_FPRS.
2003-10-05  Aldy Hernandez  <aldyh@redhat.com>

	* config/rs6000/linuxspe.h: Define TARGET_SPE_ABI, TARGET_SPE,
	TARGET_E500, TARGET_ISEL, and TARGET_FPRS.

From-SVN: r72121
2003-10-05 22:49:29 +00:00
Kazu Hirata
2067c116a4 c-pretty-print.c: Fix comment typos.
* c-pretty-print.c: Fix comment typos.
	* c-pretty-print.h: Likewise.
	* calls.c: Likewise.
	* cfgloopmanip.c: Likewise.
	* cgraphunit.c: Likewise.
	* cppfiles.c: Likewise.
	* final.c: Likewise.
	* function.c: Likewise.
	* gcov-io.h: Likewise.
	* gcse.c: Likewise.
	* genoutput.c: Likewise.
	* loop.c: Likewise.
	* postreload.c: Likewise.
	* reg-stack.c: Likewise.
	* regmove.c: Likewise.
	* sched-int.h: Likewise.
	* sched-rgn.c: Likewise.
	* simplify-rtx.c: Likewise.
	* tree-inline.c: Likewise.
	* config/m68hc11/m68hc11.h: Likewise.
	* config/mmix/mmix.c: Likewise.
	* config/mn10300/mn10300.md: Likewise.
	* config/sh/sh.h: Likewise.

From-SVN: r72118
2003-10-05 19:50:56 +00:00
Richard Henderson
3c2a7a6a26 tree-inline.c (remap_type): New.
* tree-inline.c (remap_type): New.
        (remap_decl): Use it.  Remap DECL_SIZE*.
        (copy_body_r): Use it.
        (walk_tree): Walk TREE_TYPE too.
        (copy_tree_r): Don't walk subtrees of types.
        * tree.c (variably_modified_type_p): Restructure.  Consider integer
        types with non-const bounds variably modified.

From-SVN: r72114
2003-10-05 12:07:47 -07:00
Kazu Hirata
a2b172fb9c * doc/invoke.texi: Fix typos.
From-SVN: r72113
2003-10-05 18:51:41 +00:00
Paolo Carlini
5b577977ea 2003-10-05 Paolo Carlini <pcarlini@unitus.it>
* include/bits/locale_facets.tcc
	(num_put::do_put(..., bool)): Prefer ?: to if-else.
	(time_get::_M_extract_name): Qualify min with std::.
	(__pad<>::_S_pad): Constify two variables; simplify an
	if-else statement factoring out some code.

	* include/bits/locale_facets.tcc: Minor cosmetic changes.

From-SVN: r72112
2003-10-05 15:08:46 +00:00
Kazu Hirata
368ebcd6ff fold-const.c: Follow spelling conventions.
* fold-const.c: Follow spelling conventions.
	* function.c: Likewise.
	* config/c4x/c4x.h: Likewise.
	* config/c4x/c4x.md: Likewise.
	* config/frv/frv.md: Likewise.
	* config/rs6000/aix.h: Likewise.
	* config/rs6000/linux64.h: Likewise.
	* config/xtensa/xtensa.c: Likewise.

From-SVN: r72111
2003-10-05 13:34:45 +00:00
Kazu Hirata
0ee55ad88a c-pretty-print.c: Fix comment formatting.
* c-pretty-print.c: Fix comment formatting.
	* cfglayout.c: Likewise.
	* cfgloopanal.c: Likewise.
	* cppcharset.c: Likewise.
	* dbxout.c: Likewise.
	* ggc-page.c: Likewise.
	* ggc.h: Likewise.
	* target.h: Likewise.

From-SVN: r72110
2003-10-05 13:09:48 +00:00
Kelley Cook
35222de242 * builtins.c, jcf.h, jvspec.c: Remove PARAMS macros.
From-SVN: r72107
2003-10-05 02:52:33 +00:00
Kelley Cook
790ca6641b * gengtype-lex.l: Recognize typedef of functions without PARAMS macro.
From-SVN: r72106
2003-10-05 02:49:20 +00:00
GCC Administrator
d72c6c58a9 Daily bump.
From-SVN: r72104
2003-10-05 00:16:05 +00:00
Nathanael Nerode
59f3507dff v850-c.c, [...]: Convert to ISO C90 function declarations and definitions.
* config/v850/v850-c.c, config/v850/v850-protos.h, config/v850/v850.c:
	Convert to ISO C90 function declarations and definitions.

From-SVN: r72102
2003-10-04 23:28:57 +00:00
Zack Weinberg
c903456103 * libfuncs.h
(LTI_eqhf2, LTI_nehf2, LTI_gthf2, LTI_gehf2, LTI_lthf2)
	(LTI_lehf2, LTI_unordhf2, LTI_eqsf2, LTI_nesf2, LTI_gtsf2)
	(LTI_gesf2, LTI_ltsf2, LTI_lesf2, LTI_unordsf2, LTI_eqdf2)
	(LTI_nedf2, LTI_gtdf2, LTI_gedf2, LTI_ltdf2, LTI_ledf2)
	(LTI_unorddf2, LTI_eqxf2, LTI_nexf2, LTI_gtxf2, LTI_gexf2)
	(LTI_ltxf2, LTI_lexf2, LTI_unordxf2, LTI_eqtf2, LTI_netf2)
	(LTI_gttf2, LTI_getf2, LTI_lttf2, LTI_letf2, LTI_unordtf2)
	(eqhf2_libfunc, nehf2_libfunc, gthf2_libfunc, gehf2_libfunc)
	(lthf2_libfunc, lehf2_libfunc, unordhf2_libfunc, eqsf2_libfunc)
	(nesf2_libfunc, gtsf2_libfunc, gesf2_libfunc, ltsf2_libfunc)
	(lesf2_libfunc, unordsf2_libfunc eqdf2_libfunc, nedf2_libfunc)
	(gtdf2_libfunc, gedf2_libfunc, ltdf2_libfunc, ledf2_libfunc)
	(unorddf2_libfunc eqxf2_libfunc, nexf2_libfunc, gtxf2_libfunc)
	(gexf2_libfunc, ltxf2_libfunc, lexf2_libfunc, unordxf2_libfunc
	(eqtf2_libfunc, netf2_libfunc, gttf2_libfunc, getf2_libfunc)
	(lttf2_libfunc, letf2_libfunc, unordtf2_libfunc):
	Delete.
	* optabs.h (OTI_eq, OTI_ne, OTI_gt, OTI_ge, OTI_lt, OTI_le)
	(OTI_unord, eq_optab, ne_optab, gt_optab, ge_optab, lt_optab)
	(le_optab, unord_optab): New.

	* optabs.c (prepare_float_lib_cmp): Rewrite.  Get the libfuncs
	from the code_to_optab table, not a giant switch; use
	swap_condition; do widening only if a comparison function that
	we can call exists in a wider mode, not if a cmp_optab insn or
	libfunc exists in a wider mode; call protect_from_queue
	exactly once on each operand.
	(init_optabs): Initialize the new optabs, not the deleted libfuncs.

	* config/gofast.h, config/ia64/ia64.c, config/mips/mips.c
	* config/pa/pa.c, config/rs6000/rs6000.c, config/sparc/sparc.c:
	Set floating point comparison libfuncs using set_optab_libfunc
	on the appropriate optab.

	* config/ia64/ia64.c (ia64_hpux_init_libfuncs): Fix typo.
	* config/rs6000/rs6000.c (rs6000_init_libfuncs): Correct ABI
	selector conditionals.

From-SVN: r72101
2003-10-04 21:36:08 +00:00
Stephane Carrez
ce59b97aee t-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is identical to m68hc12 as far as libraries are concerned.
* config/m68hc11/t-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is
	identical to m68hc12 as far as libraries are concerned.

From-SVN: r72100
2003-10-04 21:47:04 +02:00
Eric Botcazou
b494fd9851 re PR c/12446 (ICE in emit_move_insn on complicated array reference)
PR c/12446
	* c-typeck.c (convert_for_assignment): Issue an error for
	array to pointer assignment after default conversion.
	(digest_init): Likewise.

From-SVN: r72096
2003-10-04 18:02:32 +00:00
Fariborz Jahanian
e9ff9b17a7 Test for testing a global followed by extern declaration.
From-SVN: r72095
2003-10-04 16:53:19 +00:00
Fariborz Jahanian
b68a40b280 retain DECL_COMMON of old declaration
Reviewed by Geoffrey Keating.

From-SVN: r72094
2003-10-04 16:49:26 +00:00
Paolo Carlini
dff186db09 locale_facets.tcc (num_get::_M_extract_float): Constify a couple of variables.
2003-10-04  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/locale_facets.tcc (num_get::_M_extract_float):
	Constify a couple of variables.
	(num_get::do_get(..., bool&)): Constify __c; prefer *__beg,
	++__beg to *__beg++.

From-SVN: r72093
2003-10-04 14:59:32 +00:00