Commit Graph

65784 Commits

Author SHA1 Message Date
GCC Administrator 17e1f1a36f Daily bump.
From-SVN: r94907
2005-02-12 00:16:59 +00:00
Janis Johnson ecddf99e14 13450.cc: Fix XFAIL selector.
* testsuite/26_numerics/complex/13450.cc: Fix XFAIL selector.
	* testsuite/26_numerics/complex/complex_value.cc: Ditto.
	* testsuite/26_numerics/complex/pow.cc: Ditto.

From-SVN: r94904
2005-02-12 00:05:08 +00:00
Janis Johnson 75d1ddc1df libstdc++.exp: Load target-supports-dg.exp.
* testsuite/lib/libstdc++.exp: Load target-supports-dg.exp.
	* testsuite/26_numerics/complex/13450.cc: XFAIL for broken_cplxf_arg.
	* testsuite/26_numerics/complex/complex_value.cc: Ditto.
	* testsuite/26_numerics/complex/pow.cc: Ditto.

From-SVN: r94902
2005-02-11 22:40:16 +00:00
Janis Johnson a29c731dee gcc-dg.exp: (dg-require-weak...
* lib/gcc-dg.exp: (dg-require-weak, dg-require-visibility,
	dg-require-alias, dg-require-gc-sections, dg-require-profiling,
	dg-require-dll, dg-require-iconv, dg-require-named-sections,
	dg-require-effective-target, dg-skip-if, dg-xfail-if, selector_opd,
	selector_list, selector_expression, dg-process-target): Move to new
	file target-supports-dg.exp.
	* lib/target-supports-dg.exp: New.

From-SVN: r94901
2005-02-11 22:36:53 +00:00
Janis Johnson 56afd7aae3 target-supports.exp (check_effective_target_broken_cplxf_arg): New.
* lib/target-supports.exp (check_effective_target_broken_cplxf_arg):
	New.

From-SVN: r94900
2005-02-11 22:34:57 +00:00
Janis Johnson 6027770b6e cls_align_longdouble.c: Remove dg-options.
* testsuite/libffi.call/cls_align_longdouble.c: Remove dg-options.
	* testsuite/libffi.call/float.c: Ditto.
	* testsuite/libffi.call/float2.c: Ditto.
	* testsuite/libffi.call/float3.c: Ditto.

From-SVN: r94899
2005-02-11 22:33:16 +00:00
Steven Bosscher c33bae8825 re PR tree-optimization/19876 (g++ starts eating all the memory and the CPU)
PR tree-optimization/19876
	Partially revert my change from 2005-01-14
	* tree-ssa-pre.c (compute_antic_aux): Make recursive once again...
	(compute_antic): ...and remove the loop here.

From-SVN: r94896
2005-02-11 21:52:34 +00:00
Jakub Jelinek 36b23fd76a re PR c++/19666 (Trouble with prt-to-members: rejects-valid/ICE in fold_convert)
PR c++/19666
	2004-06-08  Andrew Pinski  <pinskia@physics.uc.edu>
	* fold-const.c (fold_convert): Treat OFFSET_TYPE like
	POINTER_TYPE and INTEGER_TYPE.

	* gcc/testsuite/g++.dg/other/ptrmem6.C: New test.

[[Split portion of a mixed commit.]]

From-SVN: r94893.2
2005-02-11 22:12:48 +01:00
Jakub Jelinek 97e9692bfb re PR middle-end/19858 (ICE on simple SSE code)
PR middle-end/19858
	* fold-const.c (make_bit_field_ref): If bitpos == 0 and bitsize
	is number of inner's bits, avoid creating a BIT_FIELD_REF.

	* gcc.c-torture/compile/20050210-1.c: New test.

From-SVN: r94892
2005-02-11 22:08:44 +01:00
Jakub Jelinek 28f8ecf912 sysv4.h (ENDFILE_LINUX_SPEC): Use crtendS.o instead of crtend.o if -pie.
* config/rs6000/sysv4.h (ENDFILE_LINUX_SPEC): Use crtendS.o instead of
	crtend.o if -pie.  Use %{x:a;:b} spec syntax.

From-SVN: r94890
2005-02-11 22:05:28 +01:00
Richard Henderson fae6e24644 re PR c++/19634 (Infinite memory usage on Alpha)
PR c++/19632
        * pt.c (get_mostly_instantiated_function_type): Save and restore
        flag_access_control instead of push/pop_access_scope.

From-SVN: r94889
2005-02-11 12:22:23 -08:00
Daniel Jacobowitz d04b77acc8 linux-unwind.h (mips_fallback_frame_state): Adjust offsets for the big-endian 32-bit case.
* config/mips/linux-unwind.h (mips_fallback_frame_state): Adjust
	offsets for the big-endian 32-bit case.

From-SVN: r94888
2005-02-11 20:18:59 +00:00
Joseph Myers 70406574fc * config/ia64/hpux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
From-SVN: r94887
2005-02-11 19:55:07 +00:00
Dale Johannesen 7e42db17f9 cselib.c (cselib_process_insn): Clear out regs where HARD_REGNO_CALL_PART_CLOBBERED is true at a call.
2005-02-11  Dale Johannesen  <dalej@apple.com>

	* cselib.c (cselib_process_insn):  Clear out regs where
	HARD_REGNO_CALL_PART_CLOBBERED is true at a call.
	* reload.c (find_equiv_reg): Ditto.

From-SVN: r94885
2005-02-11 18:12:33 +00:00
Mark Mitchell 712b39c528 re PR c++/19755 (-Wmissing-braces doesn't warn anymore)
PR c++/19755
	* decl.c (reshape_init): Issue warnings about missing braces.

	PR c++/19755
	* g++.dg/warn/Wbraces1.C: New test.

From-SVN: r94882
2005-02-11 17:15:50 +00:00
Kazu Hirata fb4d77b367 * cp-tree.def, except.c, ptree.c: Update copyright.
From-SVN: r94881
2005-02-11 16:28:37 +00:00
Ian Lance Taylor c5d97f6e5d read-rtl.c (read_rtx_1): Give fatal error if we see a vector with no elements.
* read-rtl.c (read_rtx_1): Give fatal error if we see a vector
	with no elements.

From-SVN: r94879
2005-02-11 15:09:53 +00:00
Ian Lance Taylor f6254da445 tree.c (build_function_type_list): Work correctly if there are no arguments.
* tree.c (build_function_type_list): Work correctly if there are
	no arguments.

From-SVN: r94878
2005-02-11 15:07:33 +00:00
Ulrich Weigand f4f41b4e37 s390.md ("*cmpdi_cct", [...]): Use %h instead of %c to print immediate operand.
* config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs",
	"*cmpsi_ccs"): Use %h instead of %c to print immediate operand.
	("*zero_extendhisi2_64", "*zero_extendhisi2_31"): Choose based on
	TARGET_ZARCH instead of TARGET_64BIT.

From-SVN: r94877
2005-02-11 14:40:55 +00:00
Ralf Corsepius f203217e35 2005-02-11 Ralf Corsepius <ralf.corsepius@rtems.org>
* config/rs6000/t-rtems:
	(MULTILIB_OPTIONS): Remove mcpu=602.
	(MUTLILIB_DIRNAMES): Remove m602.
	(MULTILIB_MATCHES): Add ${MULTILIB_MATCHES_FLOAT}.
	Let mcpu=602 match mcpu=603.
	(MULTILIB_NEW_EXCEPTIONS_ONLY): Add mcpu=601, mcpu=602, mcpu=m603.

From-SVN: r94876
2005-02-11 09:13:12 +01:00
John David Anglin 9dcab61e1c linux-unwind.h (pa32_fallback_frame_state): Handle misaligned signal trampolines.
* pa/linux-unwind.h (pa32_fallback_frame_state): Handle misaligned
	signal trampolines.

From-SVN: r94869
2005-02-11 01:46:20 +00:00
David Daney 70ad1f9f9f linux-unwind.h: Add exception clause to copyright.
2005-02-10  David Daney  <ddaney@avtrex.com>

	* config/alpha/linux-unwind.h: Add exception clause to copyright.
	* config/i386/linux-unwind.h: Likewise.
	* config/ia64/linux-unwind.h: Likewise.
	* config/mips/linux-unwind.h: Likewise.
	* config/pa/linux-unwind.h: Likewise.
	* config/rs6000/linux-unwind.h: Likewise.
	* config/s390/linux-unwind.h: Likewise.
	* config/sh/linux-unwind.h: Likewise.
	* config/sparc/linux-unwind.h: Likewise.

From-SVN: r94868
2005-02-11 01:12:57 +00:00
GCC Administrator a94e27ddc1 Daily bump.
From-SVN: r94863
2005-02-11 00:18:19 +00:00
Ian Lance Taylor 20f0edca38 * MAINTAINERS: Update my e-mail address.
From-SVN: r94859
2005-02-10 23:29:41 +00:00
Steven Bosscher 3b6616ddc4 re PR tree-optimization/17549 (10% increase in codesize with C code compared to GCC 3.3)
PR tree-optimization/17549
	* tree-outof-ssa.c (find_replaceable_in_bb): Do not allow
	TER to replace a DEF with its expression if the DEF and the
	rhs of the expression we replace into have the same root
	variable.

From-SVN: r94853
2005-02-10 22:57:30 +00:00
Richard Sandiford a0c5992a20 mips.md: Fix the placement of the match_scratch in the lea64 peephole2.
* config/mips/mips.md: Fix the placement of the match_scratch in the
	lea64 peephole2.

From-SVN: r94846
2005-02-10 20:43:44 +00:00
Kazu Hirata 0388d40ad3 cse.c, [...]: Fix comment typos.
* cse.c, tree-ssa-loop-ivopts.c, config/rs6000/linux-unwind.h:
	Fix comment typos.

From-SVN: r94845
2005-02-10 20:13:21 +00:00
Mike Stump f00485cc36 Fix typo...
From-SVN: r94843
2005-02-10 19:21:33 +00:00
Mike Stump b77647dff8 * libsupc++/del_op.cc: Don't include cstdlib when !_GLIBCXX_HOSTED.
From-SVN: r94842
2005-02-10 19:05:34 +00:00
Zdenek Dvorak f5e2738c52 tree-ssa-loop-ivopts.c (determine_base_object): Ignore casts.
* tree-ssa-loop-ivopts.c (determine_base_object): Ignore casts.
	(strip_offset): Handle addresses.
	(add_address_candidates): Use strip_offset.
	(difference_cost): Reflect strip_offset change.
	(force_var_cost, difference_cost): Strip nops.

From-SVN: r94841
2005-02-10 19:02:44 +00:00
Kazu Hirata c486021de8 builtins.def, [...]: Update copyright.
* builtins.def, haifa-sched.c, libgcc2.c, libgcc2.h,
	tree-ssa-loop-ivcanon.c, tree-ssa-loop-niter.c,
	config/cris/cris-protos.h, config/cris/cris.c: Update
	copyright.

From-SVN: r94840
2005-02-10 18:59:07 +00:00
Kazu Hirata 33d6a74c64 * df.h (DF_REF_MODE_CHANGE, DF_REF_MEM_OK): Remove.
From-SVN: r94839
2005-02-10 18:46:31 +00:00
Tom Tromey 8c07707279 Makefile.in: Rebuilt.
* external/sax/Makefile.in: Rebuilt.
	* external/sax/Makefile.am (all-local): Removed.
	(BUILT_SOURCES): New variable.
	(mostlyclean-local): No error if no classes to delete.
	* external/w3c_dom/Makefile.in: Rebuilt.
	* external/w3c_dom/Makefile.am (all-local): Removed.
	(BUILT_SOURCES): New variable.
	(mostlyclean-local): No error if no classes to delete.

From-SVN: r94838
2005-02-10 18:33:54 +00:00
Jeff Law 8d6f71958b tree-ssa-dom.c (thread_across_edge): Use xmalloc, not xcalloc.
* tree-ssa-dom.c (thread_across_edge): Use xmalloc, not xcalloc.
        (lookup_avail_expr): Similarly.

From-SVN: r94836
2005-02-10 10:53:46 -07:00
Andreas Jaeger 0ebbef54ac * init.c (__gnat_initialize): Mark parameter as unused.
From-SVN: r94832
2005-02-10 16:43:53 +01:00
Richard Guenther ba78d4526f builtins.c (fold_builtin_powi): New function.
2005-02-10  Richard Guenther  <rguenth@gcc.gnu.org>

	* builtins.c (fold_builtin_powi): New function.
	(fold_builtin_1): Call it.

	* gcc.dg/builtins-52.c: New testcase.

From-SVN: r94831
2005-02-10 15:16:51 +00:00
Arnaud Charlet 537f4eb35d Minor reformatting.
From-SVN: r94829
2005-02-10 15:05:21 +01:00
Arnaud Charlet f5faf9de32 New file.
From-SVN: r94828
2005-02-10 15:04:42 +01:00
Arnaud Charlet fc5a191d6f Resync.
From-SVN: r94827
2005-02-10 15:00:09 +01:00
Arnaud Charlet 984a64bcf3 [multiple changes]
2005-02-09  Sergey Rybin  <rybin@adacore.com>

	* gnat_ugn.texi: Add to the gnatpp section the paragraph describing
	the difference between compact and incompact layout and add the record
	representation clause to the example illustrating different layouts.
	Add the description of '-A5' gnatpp option ("align 'AT' keywords in
	component clauses").

2005-02-09  Florian Villoing  <villoing@adacore.com>

	* gnat_ugn.texi: Fix typos.
	Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
	@file.
	Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
	in the generated documentation.

2005-02-09  Arnaud Charlet  <charlet@adacore.com>

	* gnat_ugn.texi: Remove all mentions of FSU threads, which are no
	longer supported.
	Update linker wrapper when linking with non GNU C++.

2005-02-09  Pascal Obry  <obry@adacore.com>

	* gnat_ugn.texi:
	Document the procedure to debug the DllMain routine on Windows.
	Add note about -funwind-tables and mixed Ada and C/C++ programming in
	ZCX mode.
	Document new BIND qualifer /RETURN_CODES=VMS.

2005-02-09  Ben Brosgol  <brosgol@adacore.com>

	* gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
	Edited gnatmetric chapter

2005-02-09  Robert Dewar  <dewar@adacore.com>

	* gnat_rm.texi:
	Changes to document new wide wide character support
	For AI-285
	Update documentation on Normalize_Scalars and Initialize_Scalars

2005-02-09  Pascal Obry  <obry@adacore.com>

	* s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.

2005-02-09  Jose Ruiz  <ruiz@adacore.com>

	* s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
	from the VxWorks kernel) that is needed for getting the active
	priority of the different tasks.

	* s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
	Use a pragma Elaborate_Body in the spec file instead.
	Noticed by code reading.

2005-02-09  Thomas Quinot  <quinot@adacore.com>

	* exp_util.ads: Minor correction in comment.

2005-02-09  Arnaud Charlet  <charlet@adacore.com>

	* s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
	since this procedure is now too complex to be worth inlining.

From-SVN: r94826
2005-02-10 14:57:23 +01:00
Arnaud Charlet 448f26107e usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions) Slight fix to...
* usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
	Slight fix to documentation of -gnaty with no parameters

	* xr_tabls.ads: Add ??? comment for missing overall comment

	* xsinfo.adb: Make default file name be sinfo.h, since this is what
	we now use by default.

	* xsnames.adb: Adjust end of file test to look for five space followed
	by '#' instead of six spaces. The format of xsnames.adb was modified
	in the last update.

	* a-numeri.ads: Add reference to AI-388 for greek letter pi
	identifier.

	* clean.adb: Minor reformatting.

	* gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
	gnatname.adb: Minor reformatting
	Add 2005 to copyright output when utility is run

	* csets.adb: Eliminate obsolete comment

	* debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
	Update comments.

	* sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.

From-SVN: r94825
2005-02-10 14:57:01 +01:00
Arnaud Charlet f5da72ceab s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite recursion warnings when...
* s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
	recursion warnings when compiled with -gnatdm.

From-SVN: r94824
2005-02-10 14:56:44 +01:00
Arnaud Charlet e05be4b4c7 s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len] fields for foreign threads.
* s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
	fields for foreign threads.

From-SVN: r94823
2005-02-10 14:56:32 +01:00
Arnaud Charlet e703a483c4 s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
* s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
	Minor reformatting.

From-SVN: r94822
2005-02-10 14:56:20 +01:00
Arnaud Charlet 340b490d0b sem_ch7.adb (Uninstall_Declarations): Exchange full and private views of a private type after handling its private...
* sem_ch7.adb (Uninstall_Declarations): Exchange full and private
	views of a private type after handling its private dependents, to
	maintain proper stack discipline between entry and exit from the
	package.

From-SVN: r94821
2005-02-10 14:56:10 +01:00
Arnaud Charlet 7ffd93121c sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even with expansion disabled.
* sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
	with expansion disabled. The actual subtype is needed among other
	places when the selected component appears in the context of a loop
	bound, and denotes a packed array.
	(Operator_Check): Always use the first subtype in the
	error message, to avoid the appearance of internal base types.
	(Transform_Object_Operation): Copy each actual in full
	to the parameter associations of the constructed call, rather than
	using the shallow copy mechanism of New_Copy_List. This ensures that
	the chaining of named associations is done properly.
	(Complete_Object_Operation): Rewrite node, rather than
	replacing it, so that we can trace back to the original selected
	component.

	* sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
	and calls that use object notation, if the called function is not
	declared  in a withed unit, place the elaboration constraint on the
	unit in the context that makes the function accessible.
	(Check_Elab_Subtype_Declaration): Check whether a subtype declaration
	imposes an elaboration constraint between two packages.

From-SVN: r94820
2005-02-10 14:55:59 +01:00
Arnaud Charlet a3a0db2eb9 prj-makr.adb (Process_Directory): Put file name in canonical case before matching against the patterns.
* prj-makr.adb (Process_Directory): Put file name in canonical case
	before matching against the patterns.
	If gnatname has been invoked as <prefix>-gnatname
	then invoke the compiler as <prefix>-gcc, not just "gcc".

From-SVN: r94819
2005-02-10 14:55:43 +01:00
Arnaud Charlet 3536d406b5 re PR ada/16592 (Ada tools don't use the newly built shared libraries)
* s-asthan-vms.adb: Removed.

	* s-asthan-vms-alpha.adb: Added.

	* Makefile.in [VMS] (LN,LN_S): Define as cp -p
	Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
	[VMS]: Add translations for g-enblsp.adb.
	(LIBGNAT_SRCS): Add seh_init.c.
	(LIBGNAT_OBJS): Add seh_init.o.

	PR ada/16592

	Link all gnat tools with -static-libgcc, since
	-shared-libgcc is now used by default on some systems (e.g. linux with
	recent binutils).
	Remove references to Makefile.prolog/generic, no longer used.

From-SVN: r94818
2005-02-10 14:55:33 +01:00
Arnaud Charlet e06a584e59 make.adb (Gnatmake): Do not fail when the main project has no object directory.
* make.adb (Gnatmake): Do not fail when the main project has no object
	directory.

From-SVN: r94817
2005-02-10 14:54:58 +01:00
Arnaud Charlet 5f57ad3179 init.c (__gnat_initialize): Add a new parameter eh which contains the address of the exception registration.
* init.c (__gnat_initialize): Add a new parameter eh which contains the
	address of the exception registration. The Win32 version of this
	routine calls __gnat_install_SEH_handler() to initialize the SEH
	(Structured Exception Handling) handler.
	(__gnat_error_handler) [Win32]: Removed. Not needed as we use
	SEH (Structured Exception Handling) now.
	(__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
	(__gnat_initialize for ppc-vxworks): Adjust comments and the
	preprocessor condition protecting the call to the extra eh setup
	subprogram, which is only available for the ppc target.
	(__gnat_clear_exception_count): replaced reference to
	variable taskIdCurrent by call to taskIdSelf(), cleaner.

	* seh_init.c: New file.

	* Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
	(GNATBIND_OBJS): Idem.

	* misc.c (gnat_parse_file): Update call to __gnat_initialize. This
	routine takes a new parameter (a pointer to the exception registration
	for the SEH (Structured Exception Handling) support.

	* raise.h: (__gnat_install_SEH_handler): New prototype.
	Update copyright notice.

	* s-tassta.adb (Task_Wrapper): Declare the exception registration
	record and initialize it by calling __gnat_install_SEH_handler.

From-SVN: r94816
2005-02-10 14:54:45 +01:00