Commit Graph

44345 Commits

Author SHA1 Message Date
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
Kaveh R. Ghazi
c27c15db2d * stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use ASM_OUTPUT_LABEL_REF.
From-SVN: r55822
2002-07-28 22:35:21 +00:00
Zack Weinberg
99086d596f defaults.h (ASM_OUTPUT_MEASURED_SIZE): Take only two arguments.
* defaults.h (ASM_OUTPUT_MEASURED_SIZE): Take only two
	arguments.  Always use ".-symbol" as expression argument.
	* doc/tm.texi: Update to match.  Document requirement for
	".size symbol, .-symbol" to be acceptable to assembler.

	* config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
	config/arm/elf.h, config/avr/avr.h, config/cris/aout.h,
	config/i386/freebsd-aout.h, config/i386/sco5.h,
	config/ip2k/ip2k.h, config/m88k/m88k.h, config/xtensa/elf.h,
	config/xtensa/linux.h:  Update uses of ASM_OUTPUT_MEASURED_SIZE.

From-SVN: r55820
2002-07-28 18:44:34 +00:00
Mark Mitchell
5922c46ce9 Update version number
From-SVN: r55818
2002-07-28 16:45:44 +00:00
Kaveh R. Ghazi
6fd327e917 * Makefile.in (gengtype-lex.c): Fix error in last change.
From-SVN: r55817
2002-07-28 13:36:05 +00:00
Kaveh R. Ghazi
8155cedd47 freebsd.h (TARGET_OS_CPP_BUILTINS): Add missing backslash.
* alpha/freebsd.h (TARGET_OS_CPP_BUILTINS): Add missing
	backslash.

From-SVN: r55816
2002-07-28 13:00:22 +00:00
Kaveh R. Ghazi
dd86aabfe6 Makefile.in (vmsdbgout.o): Depend on function.h.
* Makefile.in (vmsdbgout.o): Depend on function.h.

	* vmsdbgout.c: Include function.h.

From-SVN: r55815
2002-07-28 12:55:13 +00:00
Alan Modra
d434817799 prefix.c (update_path): Don't strip single .' path components unless stripping a later ..' component.
* prefix.c (update_path): Don't strip single `.' path components
	unless stripping a later `..' component.  Exit loop as soon as
	a valid path is found.

From-SVN: r55814
2002-07-28 18:31:09 +09:30
GCC Administrator
3e75a2f99d Daily bump.
From-SVN: r55813
2002-07-28 07:17:06 +00:00
Roger Sayle
c2ef6d3492 builtins.def [...]: Require an explicit ATTRS argument.
* builtins.def [DEF_GCC_BUILTIN]: Require an explicit ATTRS
	argument.  Mark BUILT_IN_RETURN, BUILT_IN_EH_RETURN,
	BUILT_IN_LONGJMP and BUILT_IN_TRAP as noreturn, the ISO C99
	floating point unordered comparisons (e.g. __builtin_isgreater)
	as const, and leave the remaining GCC_BUILTINs unchanged.

	* c-decl.c (builtin_function): No need to explicitly mark
	BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn.

	* cp/decl.c (builtin_function_1): No need to explicitly mark
	BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn.

From-SVN: r55805
2002-07-28 05:34:04 +00:00
Roger Sayle
52bfebf091 Makefile.in: rtlanal.o now depends upon real.h.
* Makefile.in: rtlanal.o now depends upon real.h.

	* flags.h [flag_signaling_nans]: New flag.
	[HONOR_SNANS]: New macro.

	* toplev.c [flag_signaling_nans]: Initialize to false.
        (f_options): Add processing for "-fsignaling-nans".
	(set_fast_math_flags): Clear flag_signaling_nans with -ffast-math.
	(process_options): flag_signaling_nans implies flag_trapping_math.

	* c-common.c (cb_register_builtins): Define __SUPPORT_SNAN__
	when -fsignaling-nans.  First step to implementing WG14's N965.

	* fold-const.c (fold) [MULT_EXPR]: Conditionalize transforming
	1.0 * x into x, and -1.0 * x into -x on !HONOR_SNANS.
	[RDIV_EXPR]: Conditionalize x/1.0 into x on !HONOR_SNANS.

	* simplify-rtx.c (simplify_relational_operation): Conditionalize
	transforming abs(x) < 0.0 into false on !HONOR_SNANS.

	* rtlanal.c: #include real.c for TARGET_FLOAT_FORMAT definitions
	required by HONOR_SNANS.  (may_trap_p): Floating point DIV, MOD,
	UDIV, UMOD, GE, GT, LE, LT and COMPARE may always trap with
	-fsignaling_nans.  EQ and NE only trap for flag_signaling_nans
	not flag_trapping_math (i.e. HONOR_SNANS but not HONOR_NANS).

	* doc/invoke.texi: Document new -fsignaling-nans compiler option.

From-SVN: r55804
2002-07-28 02:11:05 +00:00
Kaveh R. Ghazi
e66f55b878 Makefile.in (gengtype-lex.c): Work around a bug in flex.
* Makefile.in (gengtype-lex.c): Work around a bug in flex.
	* gengtype-lex.l (YY_USE_PROTOS): Undef.
	(YY_DECL): Define.

From-SVN: r55803
2002-07-27 23:35:11 +00:00
Roger Sayle
a3926fe192 decl2.c (cxx_decode_option): Support -fno-builtin-foo.
* cp/decl2.c (cxx_decode_option): Support -fno-builtin-foo.

	* doc/invoke.texi: Document that both -fno-builtin-foo and
	-fno-builtin are supported by the g++ front-end.

From-SVN: r55802
2002-07-27 21:15:39 +00:00
Stan Shebs
ef69da62f4 configure.in: Rename config_gtfiles to target_gtfiles.
* configure.in: Rename config_gtfiles to target_gtfiles.
        * configure: Regenerate.
        * doc/gty.texi: Update reference.
        * config.gcc (powerpc-*-darwin*): Set target_gtfiles
        instead of appending to it.

From-SVN: r55801
2002-07-27 20:54:52 +00:00