Commit Graph

44558 Commits

Author SHA1 Message Date
Toon Moene
2e8f2e8f7d flags.h: Declare flag_finite_math_only.
2002-07-30  Toon Moene  <toon@moene.indiv.nluug.nl>

	* flags.h: Declare flag_finite_math_only.
	Use it in definition of HONOR_NANS and
	HONOR_INFINITIES.
	* c-common.c (cb_register_builtins): Emit
	__FINITE_MATH_ONLY__ when flag_finite_math_only
	is set.
	* combine.c (simplify_if_then_else): If
	flag_finite_math_only is set, a == b has a
	definite value.
	* toplev.c: Initialize flag_finite_math_only.
	(set_flags_fast_math): Set it on -ffast-math.
	(flag_fast_math_set_p): Test it.
doc:
	* invoke.texi: Document -ffinite-math-only.
f:
	* com.c (ffe_init_options): Set
	flag_finite_math_only.
	* invoke.texi: Document -fno-finite-math-only.

From-SVN: r55887
2002-07-30 22:23:26 +00:00
Richard Henderson
a538e58055 ifcvt.c (noce_get_alt_condition): Use reg_overlap_mentioned_p.
* ifcvt.c (noce_get_alt_condition): Use reg_overlap_mentioned_p.
        (noce_process_if_block): Likewise.

From-SVN: r55886
2002-07-30 15:13:50 -07:00
Bernd Schmidt
79cbc1f764 Recognize return insns even if the return appears in a parallel.
From-SVN: r55885
2002-07-30 21:57:56 +00:00
Bernd Schmidt
26e20555c3 Fix null pointer crash and a merge error
From-SVN: r55884
2002-07-30 21:48:13 +00:00
David Edelsohn
0559cc7752 rs6000.c (rs6000_expand_unop_builtin): Check icode not CODE_FOR_nothing.
2002-07-30  David Edelsohn  <edelsohn@gnu.org>
            Zack Weinberg  <zack@codesourcery.com>

        * rs6000.c (rs6000_expand_unop_builtin): Check icode not
        CODE_FOR_nothing.  Change switch to if.
        (rs6000_expand_binop_builtin): Same.
        (rs6000_expand_builtin): Expand builtin if target support enabled.
        (rs6000_init_builtins): Init builtin if target support enabled.
        (rs6000_common_init_builtins): Check icode not CODE_FOR_nothing.

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

From-SVN: r55882
2002-07-30 17:23:46 -04:00
Franz Sirl
60b8aa9433 gcc.c (cpp_unique_options): Define __GXX_ABI_VERSION, bump it to 101.
gcc/

	* gcc.c (cpp_unique_options): Define __GXX_ABI_VERSION, bump it to 101.

gcc/cp/

	* lang-specs.h: Remove __GXX_ABI_VERSION, moved to gcc.c.

From-SVN: r55880
2002-07-30 20:40:20 +00:00
Richard Sandiford
714fb7104b * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Fix typo.
From-SVN: r55879
2002-07-30 19:08:23 +00:00
J"orn Rennecke
c608a68464 sh.md (cond_delay_slot): New attribute.
* sh.md (cond_delay_slot): New attribute.
	(cbranch delay): Use it for anulled-true case.
	(stuff_delay_slot): New pattern.
	* sh.c (print_operand, case '.'): Don't print .s / /s fore zero-length
	delay slot insn.
	(gen_far_branch): Emit stuff_delay_slot pattern.

From-SVN: r55878
2002-07-30 18:39:27 +01:00
J"orn Rennecke
0a7564014a * unroll.c (copy_loop_body): Don't copy NOTE_INSN_LOOP_CONT.
From-SVN: r55877
2002-07-30 18:37:58 +01:00
Kazu Hirata
68e82b8334 fold-const.c: Fix comment typos.
* fold-const.c: Fix comment typos.
	* gcse.c: Likewise.
	* reload1.c: Likewise.

From-SVN: r55876
2002-07-30 16:42:05 +00:00
Aldy Hernandez
fe6b547a28 rs6000.md: Disallow CCEQ compare with crnor/crnot for TARGET_SPE.
2002-07-29  Aldy Hernandez  <aldyh@redhat.com>

	* config/rs6000/rs6000.md: Disallow CCEQ compare with crnor/crnot
	for TARGET_SPE.

From-SVN: r55875
2002-07-30 16:36:02 +00:00
Gabriel Dos Reis
7ff4a7ef70 c-pretty-print.h (pp_c_statement): Declare.
* c-pretty-print.h (pp_c_statement): Declare.
	* c-pretty-print.c (pp_c_postfix_expression): #if 0 support for SRCLOC.
	(pp_c_statement): Define.

From-SVN: r55874
2002-07-30 13:48:06 +00:00
Jeff Sturm
a15e868a95 configure.in (LIBFFIINCS): Don't prepend MULTIBUILDTOP.
* configure.in (LIBFFIINCS): Don't prepend MULTIBUILDTOP.
	* configure: Rebuilt.

From-SVN: r55873
2002-07-30 12:36:00 +00:00
Kaveh R. Ghazi
4ad5e05d7f alpha.h, [...] (ASM_OUTPUT_LABEL): Delete definition.
* alpha.h, arc.h, arm/aout.h, avr.h, c4x.h, cris.h, d30v.h,
	darwin.h, dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i960.h,
	ip2k.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mips.h,
	mn10200.h, mn10300.h, ns32k.h, pa/pa-linux.h, pdp11.h, romp.h,
	rs6000/sysv4.h, s390/linux.h, sh.h, sparc.h, stormy16.h,
	v850.h, vax.h, xtensa.h (ASM_OUTPUT_LABEL): Delete definition.

	* defaults.h (ASM_OUTPUT_LABEL): Provide a default.
	* doc/tm.texi (ASM_OUTPUT_LABEL): Update docs.

From-SVN: r55872
2002-07-30 12:34:31 +00:00
Gabriel Dos Reis
8a4a72424f * cp-tree.h (VF_DERIVED_VALUE): Restore from previous deletion.
From-SVN: r55871
2002-07-30 07:49:40 +00:00
GCC Administrator
d2cea56aaf Daily bump.
From-SVN: r55870
2002-07-30 07:17:09 +00:00
Gabriel Dos Reis
1e6a3e1e1e c-pretty-print.c (pp_c_primary_expression): Handle STMT_EXPR.
* c-pretty-print.c (pp_c_primary_expression): Handle STMT_EXPR.
	(pp_c_postfix_expression): Handle ARROW_EXPR, FFS_EXPR,
	COMPOUND_LITERAL_EXPR, VA_ARG_EXPR.
	(pp_c_expression): Update.

From-SVN: r55864
2002-07-30 06:34:57 +00:00
Nathan Sidwell
03fc215c4c cp-tree.h (CLASSTYPE_VFIELDS, VF_*, BV_*): Add more documentation.
* cp-tree.h (CLASSTYPE_VFIELDS, VF_*, BV_*): Add more
	documentation.

From-SVN: r55863
2002-07-30 05:03:42 +00:00
Kaveh R. Ghazi
1dcd444b7e adadecode.c (ada_demangle): Use xstrdup in lieu of xmalloc/strcpy.
ada:
	* adadecode.c (ada_demangle): Use xstrdup in lieu of
	xmalloc/strcpy.
	* misc.c (gnat_decode_option): Likewise.

gcc:

	* alpha/vms-cc.c (preprocess_args, main): Use xstrdup and/or
	concat in lieu of xmalloc/strcpy/memcpy/sprintf.
	* alpha/vms-ld.c (main): Likewise.
	* dsp16xx.c (double_reg_to_memory): Likewise.
	* mcore.c (mcore_expand_prolog): Likewise.
	* cppfiles.c (read_name_map): Likewise.
	* gensupport.c (process_rtx, identify_predicable_attribute,
	alter_test_for_insn): Likewise.
	* vmsdbgout.c (write_rtnbeg, vmsdbgout_init): Likewise.

f:
	* com.c (read_name_map): Use concat in lieu of xmalloc/strcpy.

From-SVN: r55861
2002-07-30 02:24:17 +00:00
Roger Sayle
e62f4abc90 builtins.c (expand_builtin): Change the default behavior to only issue an error if...
* builtins.c (expand_builtin):  Change the default behavior to
	only issue an error if the builtin function doesn't have a
	fallback library call.  Remove several cases handled by the
	new default.

From-SVN: r55860
2002-07-30 02:19:43 +00:00
John David Anglin
0cd2fb440d real.c (ieee_24, [...]): Define only if the floating point format of the target is IEEE.
* real.c (ieee_24, ieee_53, ieee_64, ieee_113): Define only if the
	floating point format of the target is IEEE.
	* (dec_f, dec_d, dec_g, dec_h): Define only if the floating point
	format of the target is DEC.

From-SVN: r55859
2002-07-30 01:42:19 +00:00
Richard Henderson
b642261e5c unroll.c (verify_addresses): Remove.
* unroll.c (verify_addresses): Remove.
        (find_splittable_givs): Never split DEST_ADDR givs.

From-SVN: r55858
2002-07-29 16:57:52 -07:00
Geoffrey Keating
cba57c9d40 gty.texi (GGC Roots): Clarify that the list of syntaxes is exhaustive.
* doc/gty.texi (GGC Roots): Clarify that the list of syntaxes
	is exhaustive.
	(Files): Improve documentation on generated source files.

	* doc/extend.texi (Translation implementation): Document what
	diagnostics look like.
	(Identifiers implementation): Document that there's normally no
	limit on identifier names.
	(Integers implementation): Document two's complement.
	(Hints implementation): Document that GCC honours 'inline', mostly.
	(Preprocessing directives implementation): Document that GCC
	requires the current time.

From-SVN: r55857
2002-07-29 23:53:47 +00:00
Gabriel Dos Reis
76a8ecba5e c-pretty-print.h (struct c_pretty_print_info): Add new member.
2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>

	* c-pretty-print.h (struct c_pretty_print_info): Add new member.
	(pp_initializer): New macro.
	(pp_c_initializer): Declare.
	* c-pretty-print.c (pp_c_primary_expression): HAndle TARGET_EXPR.
	(pp_c_initializer): Define.
	(pp_c_initializer_list): New function.
	(pp_c_postfix_expression): Handle ABS_EXPR, COMPLEX_CST,
	VECTOR_CST, CONSTRUCTOR.
	(pp_c_unary_expression): Handle CONJ_EXPR, REALPART_EXPR,
	IMAGPART_EXPR.
	(pp_c_cast_expression): Handle FLOAT_EXPR.
	(pp_c_assignment_expression): Handle INIT_EXPR.
	(pp_c_expression): Update.

From-SVN: r55856
2002-07-29 23:42:26 +00:00
Alan Modra
61fd68b4c3 locks.h: Formatting.
* sysdep/powerpc/locks.h: Formatting.
	(_LARX): Define.
	(_STCX): Define.
	(compare_and_swap): Use _LARX and _STCX.
	(compare_and_swap_release): Likewise.

From-SVN: r55855
2002-07-30 08:56:27 +09:30
Alan Modra
bd11db39e8 cpu_limits.h (__glibcpp_long_bits): Define.
* config/cpu/powerpc/cpu_limits.h (__glibcpp_long_bits): Define.
	* configure.target (cpu_include_dir): Use cpu/powerpc for powerpc64.
	* config/cpu/powerpc/atomicity.h (__always_swap): Remove.
	(__test_and_set): Remove.
	(_STWCX): Define and use.

From-SVN: r55854
2002-07-30 08:56:00 +09:30
Neil Booth
4307be72fc objc-act.c (objc_init): Return immediately if filename is NULL.
* objc/objc-act.c (objc_init): Return immediately if filename
	is NULL.

From-SVN: r55853
2002-07-29 22:46:34 +00:00
Eric Christopher
6d4392353e elf.h: Remove ecoff.h and gofast includes.
2002-07-29  Eric Christopher  <echristo@redhat.com>

       	* config/mips/elf.h: Remove ecoff.h and gofast includes.
        (DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO): Define unconditionally.
        (SDB_DEBUGGING_INFO): Undefine.
        (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
	(PUT_SDB_SIZE): Remove.
	(SUBTARGET_ASM_DEBUGGING_SPEC): Redefine.
       	(STARTFILE_SPEC): Add isa3264 define.
       	* config/mips/elf64.h: Ditto.  Move TARGET_MEM_FUNCTIONS from here...
       	* config/mips/ecoff.h: Remove. and here...
       	* config/mips/iris3.h: and here...
       	* config/mips/sni-svr4.h: and here...
       	* config/mips/mips.h: To here. Remove OBJECT_FORMAT_ROSE ifdefs.
	Add assembler -mmdebug options for non-dwarf debugging.
	* config/mips/r3900.h: Remove debug info defines.
       	* config/mips/isa32-linux.h: Remove, move functionality to config.gcc.
       	* config/mips/isa3264.h: Ditto.
       	* config/mips/t-isa3264: Fix up for file removal and gofast configure
       	change.
       	* config/mips/t-elf: Ditto.
       	* config/mips/t-ecoff: Ditto.
       	* config/mips/t-r3900: Ditto.
       	* config/mips/t-iris5-6: Ditto.
       	* config/mips/t-isa3264: Ditto.
       	* config/mips/t-linux: Remove.
       	* config/mips/t-netbsd: Remove.
       	* config/mips/t-mips: New file.
       	* config/mips/t-gofast: Ditto.
       	* config/mips/netbsd.h: Remove unnecessary undefines.
       	* config/mips/linux.h: Remove #include of mips.h.
       	* config.gcc: Add mips.h include for elf targets. Remove tm_file
       	for ecoff. Add gofast configure option for mips.

From-SVN: r55852
2002-07-29 22:21:41 +00:00
Chris Demetriou
4357a6c348 configure.in (mips*-*-*): Add a test to see if MIPS libgloss linker scripts use STARTUP directives...
2002-07-29  Chris Demetriou  <cgd@broadcom.com>

        * configure.in (mips*-*-*): Add a test to see if MIPS libgloss
        linker scripts use STARTUP directives consistently.
        * configure: Regenerate.
        * config.in: Regenerate.
        * config/mips/elf.h (STARTFILE_SPEC): Define conditionally, based
        on whether HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is defined.
        * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
        * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine if
        HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is set; the result
        will be the same.

From-SVN: r55851
2002-07-29 15:07:27 -07:00
Aldy Hernandez
9a5cd60680 * config/rs6000/rs6000.md ("cpu"): Add ppc8540 to attribute.
From-SVN: r55850
2002-07-29 21:37:23 +00:00
Aldy Hernandez
a23acaa658 rs6000.h (RTX_COSTS): Add MULT case for 8540.
2002-07-29  Aldy Hernandez  <aldyh@redhat.com>

	* config/rs6000/rs6000.h (RTX_COSTS): Add MULT case for 8540.

From-SVN: r55849
2002-07-29 21:19:20 +00:00
Aldy Hernandez
10ed84dbb1 rs6000.md: Move altivec patterns from here...
2002-07-29  Aldy Hernandez  <aldy@quesejoda.com>

	* config/rs6000/rs6000.md: Move altivec patterns from here...

	* config/rs6000/altivec.md: ...to here.

From-SVN: r55848
2002-07-29 21:05:23 +00:00
Aldy Hernandez
c3021e5dee spe.md ("spe_evmra"): Change to unspec.
2002-07-29  Aldy Hernandez  <aldyh@redhat.com>

	* config/rs6000/spe.md ("spe_evmra"): Change to unspec.

From-SVN: r55847
2002-07-29 20:15:43 +00:00
Richard Henderson
6f1087be10 emit-rtl.c (set_mem_attributes_minus_bitpos): Rename from set_mem_attributes and add BITPOS argument.
* emit-rtl.c (set_mem_attributes_minus_bitpos): Rename from
        set_mem_attributes and add BITPOS argument.  Subtract it from
        OFFSET when same is adjusted.
        (set_mem_attributes): New wrapper function.
        * expr.c (expand_assignment): Use set_mem_attributes_minus_bitpos;
        remove offset adjustment hack.
        * expr.h (set_mem_attributes_minus_bitpos): Declare.

From-SVN: r55846
2002-07-29 12:53:34 -07:00
Gabriel Dos Reis
61ccbcfd47 Makefile.in (C_OBJS): Include c-pretty-print.o
2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>

	* Makefile.in (C_OBJS): Include c-pretty-print.o
	(c-pretty-print.o): Add depency rule.
	* pretty-print.h: Add more macros.
	* c-pretty-print.c: New file.
	* c-pretty-print.h: Likewise.

cp/

2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>

	* Make-lang.in (CXX_C_OBJS): Include.

From-SVN: r55845
2002-07-29 19:31:24 +00:00
Aldy Hernandez
09101f56b1 spe.h (__internal_ev_mwhgumian): Cast vector constants to __ev64_s32__.
2002-07-29  Aldy Hernandez  <aldyh@redhat.com>

	* config/rs6000/spe.h (__internal_ev_mwhgumian): Cast vector
	constants to __ev64_s32__.
	(__internal_ev_mwhgsmian): Same.
	(__internal_ev_mwhgsmfan): Same.
	(__internal_ev_mwhgssfan): Same.
	(__internal_ev_mwhgumiaa): Same.
	(__internal_ev_mwhgsmiaa): Same.
	(__internal_ev_mwhgsmfaa): Same.
	(__internal_ev_mwhgssfaa): Same.

From-SVN: r55844
2002-07-29 19:07:10 +00:00
David Edelsohn
af673a52ec varasm.c (assemble_variable): Narrow test for uninitialized without BSS target support.
* varasm.c (assemble_variable): Narrow test for uninitialized
        without BSS target support.

From-SVN: r55843
2002-07-29 15:01:55 -04:00
Nathan Sidwell
6c208acd84 profile.c: Add file comment describing the overall algorithm and structures.
* profile.c: Add file comment describing the overall algorithm and
	structures.
	(struct edge_info): Add comments.
	(struct bb_info): Add comments.
	* basic-block.h (EDGE_*): Add comments.
	* doc/gcov.texi (Gcov Data Files): Document bit flags.

From-SVN: r55842
2002-07-29 18:40:45 +00:00
Bob Wilson
624f0d6033 * config/xtensa/elf.h, config/xtensa/linux.h
(TARGET_OS_CPP_BUILTINS): Define.
        (CPP_PREDEFINES): Remove.
        * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define.
        (CPP_SPEC): Remove.

From-SVN: r55840
2002-07-29 18:07:09 +00:00
Zack Weinberg
2199e5fade gensupport.c: Include hashtab.h.
* gensupport.c: Include hashtab.h.
	(insn_elision, condition_table, hash_c_test, cmp_c_test,
	maybe_eval_c_test): New routines and data structures to
	support insn elision.
	(init_md_reader): Read and initialize the condition_table.
	(read_md_rtx): Discard insn patterns whose C test is provably
	always false.
	* gensupport.h: Declare new functions and data structures.

	* genconditions.c, dummy-conditions.c: New files.
	* Makefile.in: Build genconditions; run it to construct
	insn-conditions.c; build that and link it into most gen*
	programs.
	(HOST_SUPPORT, HOST_EARLY_SUPPORT): New variables.
	(GEN): Delete, unused.
	(STAGESTUFF): Update.

	* gencodes.c: (gen_insn): #define CODE_FOR_xxx equal to
	CODE_FOR_nothing for all elided patterns.
	(main): Tweaked to support this.
	* genflags.c (gen_proto): Emit a static inline generator
	function here for all elided patterns, which simply returns
	NULL_RTX.
	(gen_insn): Do not define HAVE_xxx for elided patterns.
	(main): Tweaked to support this.  No need to forward-declare
	struct rtx_def.
	* genrecog.c: Do not bother emitting the C test if it's known
	to be true at compile time.

From-SVN: r55839
2002-07-29 18:02:47 +00:00
Mike Stump
6ab185d6a5 config.gcc (target_gtfiles): Initialize...
* config.gcc (target_gtfiles): Initialize, as otherwise cross compilers hosted on
	powerpc-apple-darwin6.0 won't even build.

From-SVN: r55838
2002-07-29 17:25:30 +00:00
Neil Booth
437974a94b * cplus-dem.c (PREPEND_BLANK): Remove.
From-SVN: r55837
2002-07-29 17:11:10 +00:00
Richard Earnshaw
72b075d1ce arm.md (sibcall, [...]): Add RETURN as part of the pattern, remove clobber of LR.
* arm.md (sibcall, sibcall_value): Add RETURN as part of the pattern,
remove clobber of LR.
(sibcall_insn, sibcall_value_insn): Update accordingly.
(sibcall_epilogue): Remove debugging comment from assembler stream.

From-SVN: r55836
2002-07-29 12:41:46 +00:00
Alan Modra
3f16a8f360 * cp-tree.h: Comment typo fix.
From-SVN: r55835
2002-07-29 21:15:33 +09:30
Richard Earnshaw
c03d566f08 spew.c (space_for_token): Allocate zeroed memory for a new token chunk.
* spew.c (space_for_token): Allocate zeroed memory for a new token
chunk.

From-SVN: r55834
2002-07-29 10:37:25 +00:00
Gabriel Dos Reis
f63c45ec8e pretty-print.h: Define more macros.
* pretty-print.h: Define more macros.
	* diagnostic.h (output_formatted_integer): Moved from...
	* diagnostic.c: ... here.

From-SVN: r55833
2002-07-29 08:26:45 +00:00
GCC Administrator
789161102e Daily bump.
From-SVN: r55832
2002-07-29 07:17:07 +00:00
GCC Administrator
394544826f Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r55831.3
2002-07-29 07:17:06 +00:00
Andreas Jaeger
7596d2dc3e gcc_release: Update comment.
* gcc_release: Update comment.

	* snapshot-README: Snapshots are taken from GCC 3.2 branch.

From-SVN: r55825
2002-07-29 07:31:34 +02:00
Mark Mitchell
4bdf9f6682 * gcc_release: Use the 3.2 branch for snapshots.
From-SVN: r55824
2002-07-29 04:46:45 +00:00