Commit Graph

44434 Commits

Author SHA1 Message Date
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
GCC Administrator
3368e9773b Daily bump.
From-SVN: r55796
2002-07-27 07:16:57 +00:00
Aldy Hernandez
a4b0320c2d rs6000.c (function_arg_advance): SPE vararg vectors are split into two registers.
2002-07-25  Aldy Hernandez  <aldyh@redhat.com>

	* config/rs6000/rs6000.c (function_arg_advance): SPE vararg
	vectors are split into two registers.
	(function_arg): Same.

From-SVN: r55791
2002-07-27 04:12:48 +00:00
J"orn Rennecke
c427db5dab * pa.md (extv): Check predicates before emitting extv_32.
From-SVN: r55790
2002-07-27 02:31:07 +00:00
Tom Tromey
92847c03ab Authenticator.java: New version from Classpath.
* java/net/Authenticator.java: New version from Classpath.
	* java/net/DatagramSocketImpl.java: New version from Classpath.

From-SVN: r55789
2002-07-27 00:53:42 +00:00
Alan Modra
1d49f58aff * configure.host: Add powerpc64*-* entry.
From-SVN: r55788
2002-07-27 09:24:28 +09:30
Alan Modra
57ac7be93e rs6000.c (rs6000_traceback_name): New var.
* config/rs6000/rs6000.c (rs6000_traceback_name): New var.
	(rs6000_traceback): New var.
	(rs6000_override_options): Set rs6000_traceback.
	(rs6000_output_function_epilogue): Implement traceback options.
	* config/rs6000/rs6000.h (TARGET_OPTIONS): Add "traceback=".
	(rs6000_traceback_name): Declare.

	* config/rs6000/rs6000.c (output_profile_hook): Don't generate profile
	label reference when NO_PROFILE_COUNTERS.

From-SVN: r55787
2002-07-27 09:16:47 +09:30
Phil Edwards
bacb811db6 new (placement delete): Remove unused paramater names.
2002-07-26  Phil Edwards  <pme@gcc.gnu.org>

	* libsupc++/new (placement delete):  Remove unused paramater names.

From-SVN: r55782
2002-07-26 20:12:00 +00:00
Jason Merrill
8e51619a4c function.c (assign_parms): Handle frontend-directed pass by invisible reference.
* function.c (assign_parms): Handle frontend-directed pass by
        invisible reference.
cp/
        * call.c (build_over_call): Likewise.
        (cp_convert_parm_for_inlining): New fn.
        (convert_for_arg_passing): New fn.
        (convert_default_arg, build_over_call): Use it.
        (type_passed_as): New fn.
        * pt.c (tsubst_decl): Use it.
        * decl2.c (cp_build_parm_decl): New fn.
        (build_artificial_parm): Use it.
        (start_static_storage_duration_function): Likewise.
        * decl.c (start_cleanup_fn, grokdeclarater): Likewise.
        (grokparms): Don't mess with DECL_ARG_TYPE.
        * typeck.c (convert_arguments): Use convert_for_arg_passing.
        * cp-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
        Define.
        * cp-tree.h: Declare new fns.

From-SVN: r55781
2002-07-26 16:10:43 -04:00
Tom Tromey
8a7f132d3d natFileDescriptorPosix.cc: Don't include sys/socket.h or fcntl.h.
* java/io/natFileDescriptorPosix.cc: Don't include sys/socket.h or
	fcntl.h.

From-SVN: r55780
2002-07-26 18:33:44 +00:00
Neil Booth
b41f25cf92 cppopts.texi: Update.
* doc/cppopts.texi: Update.
testsuite:
	* gcc.dg/cpp/trad/Wunused.c, gcc.dg/cpp/Wunused.c: Add test
	for documented behaviour.

From-SVN: r55779
2002-07-26 16:34:09 +00:00
Neil Booth
c2734e0563 cppmacro.c (_cpp_create_definition): Don't attempt redefinition warnings on assertions.
* cppmacro.c (_cpp_create_definition): Don't attempt redefinition
	warnings on assertions.

From-SVN: r55778
2002-07-26 16:29:31 +00:00