Commit Graph

88809 Commits

Author SHA1 Message Date
Alan Modra d6833cf9a6 mt-spu (all-ld): Update for ld Makefile changes.
* mt-spu (all-ld): Update for ld Makefile changes.

From-SVN: r138562
2008-08-03 13:07:55 +09:30
GCC Administrator 3b67e3cc92 Daily bump.
From-SVN: r138560
2008-08-03 00:16:39 +00:00
Keith Seitz e5b1b03f56 tcl.m4 (SC_PATH_TCLCONFIG): Add some simple logic to deal with cygwin.
* tcl.m4 (SC_PATH_TCLCONFIG): Add some simple logic to deal
        with cygwin.
        (SC_PATH_TKCONFIG): Likewise.

From-SVN: r138555
2008-08-02 22:56:04 +00:00
Richard Guenther ba63dfb918 re PR tree-optimization/35252 (No vectorization for complex arrays)
2008-08-02  Richard Guenther  <rguenther@suse.de>

	PR target/35252
	* config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
	(ssedoublesizemode): New mode attribute.
	(sse_shufps): Call gen_sse_shufps_v4sf.
	(sse_shufps_1): Macroize.
	(sse2_shufpd): Call gen_Sse_shufpd_v2df.
	(sse2_shufpd_1): Macroize.
	(vec_extract_odd, vec_extract_even): New expanders.
	(vec_interleave_highv4sf, vec_interleave_lowv4sf,
	vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
	* i386.c (ix86_expand_vector_init_one_nonzero): Call
	gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
	(ix86_expand_vector_set): Likewise.
	(ix86_expand_reduc_v4sf): Likewise.

	* lib/target-supports.exp (vect_extract_even_odd_wide) Add.
	(vect_strided_wide): Likewise.
	* gcc.dg/vect/fast-math-pr35982.c: Enable for
	vect_extract_even_odd_wide.
	* gcc.dg/vect/fast-math-vect-complex-3.c: Likewise.
	* gcc.dg/vect/vect-1.c: Likewise.
	* gcc.dg/vect/vect-107.c: Likewise.
	* gcc.dg/vect/vect-98.c: Likewise.
	* gcc.dg/vect/vect-strided-float.c: Likewise.
	* gcc.dg/vect/slp-11.c: Enable for vect_strided_wide.
	* gcc.dg/vect/slp-12a.c: Likewise.
	* gcc.dg/vect/slp-12b.c: Likewise.
	* gcc.dg/vect/slp-19.c: Likewise.
	* gcc.dg/vect/slp-23.c: Likewise.
	* gcc.dg/vect/slp-5.c: Likewise.

From-SVN: r138553
2008-08-02 12:05:47 +00:00
Eric Botcazou d2143736bb utils2.c (build_binary_op): New case.
* gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
	New case.  Convert BOOLEAN_TYPE operation to the default integer type.

From-SVN: r138552
2008-08-02 10:49:51 +00:00
Doug Kwan c9234c8d54 matrix-reorg.c: Re-enable all code.
2008-08-01  Doug Kwan  <dougkwan@google.com>

	* matrix-reorg.c: Re-enable all code.
	(struct malloc_call_data): Change CALL_STMT to gimple type.
	(collect_data_for_malloc_call): Tuplify.
 	(struct access_site_info): Change STMT to gimple type.
	(struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
	and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
	(struct free_info): Change STMT to gimple type.
 	(struct matrix_access_phi_node):  Change PHI to gimple type.
	(get_inner_of_cast_expr): Remove.
	(may_flatten_matrices_1): Tuplify.
	(may_flatten_matrices): Ditto.
	(mark_min_matrix_escape_level): Ditto.
 	(ssa_accessed_in_tree): Refactor statement RHS related code into ...
	(ssa_accessed_in_call_rhs): New
	(ssa_accessed_in_assign_rhs): New
	(record_access_alloc_site_info): Tuplify.
	(add_allocation_site): Ditto.
	(analyze_matrix_allocation_site): Ditto.
	(analyze_transpose): Ditto.
	(get_index_from_offset): Ditto.
	(update_type_size): Ditto.
	(analyze_accesses_for_call_expr): Tuplify and renamed into ...
	(analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
	(analyze_accesses_for_phi_node): Tuplify.
	(analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
	(analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
	(analyze_matrix_accesses): Tuplify.
	(check_var_data): New call-back type for check_var_notmodified_p.
	(check_var_notmodified_p): Tuplify and use call-back struct to
	return statement found.
	(can_calculate_expr_before_stmt): Factor out statement related code
	into ...
	(can_calculate_stmt_before_stmt): New.
 	(check_allocation_function): Tuplify.
	(find_sites_in_func): Ditto.
	(record_all_accesses_in_func): Ditto.
	(transform_access_sites): Ditto.
	(transform_allocation_sites): Ditto.
	(matrix_reorg): Re-enable.
	(gate_matrix_reorg): Re-enable.

From-SVN: r138544
2008-08-02 01:25:48 +00:00
GCC Administrator 16fa5fe436 Daily bump.
From-SVN: r138541
2008-08-02 00:16:48 +00:00
Jakub Jelinek 07b11a21bf dwarf2out.c (compute_barrier_args_size): Set barrier_args_size for labels for which it hasn't been set yet.
* dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
	for labels for which it hasn't been set yet.  If it has been set,
	stop walking insns and continue with next worklist item.
	(dwarf2out_stack_adjust): Don't call compute_barrier_args_size
	if the only BARRIER is at the very end of a function.

From-SVN: r138537
2008-08-01 22:30:09 +02:00
Jakub Jelinek 35a84e137b re PR tree-optimization/36991 (ICE in remove_useless_stmts_1, at tree-cfg.c:1882)
2008-08-01  Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/36991
	* gcc.dg/pr36991.c: New test.

From-SVN: r138530
2008-08-01 21:01:33 +02:00
H.J. Lu 2568f82a4e Add missing ChangeLog entry for revision 138517.
From-SVN: r138525
2008-08-01 09:10:28 -07:00
H.J. Lu d015f7cc65 cfgexpand.c (expand_stack_alignment): Assert that stack_realign_drap and drap_rtx must match.
2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>

	* cfgexpand.c (expand_stack_alignment): Assert that
	stack_realign_drap and drap_rtx must match.

	* function.c (instantiate_new_reg): If DRAP is used to realign
	stack, replace virtual_incoming_args_rtx with internal arg
	pointer.

From-SVN: r138524
2008-08-01 09:05:50 -07:00
Richard Guenther 678e7c6504 tree-ssa-pre.c (fini_pre): Take in_fre parameter.
2008-08-01  Richard Guenther  <rguenther@suse.de>

	* tree-ssa-pre.c (fini_pre): Take in_fre parameter.  Free
	loop information only if we initialized it.
	(execute_pre): Call fini_pre with in_fre.
	* tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
	if we do not unroll because we hit max-completely-peeled-insns.
	Use our estimation for consistency, do allow shrinking.

From-SVN: r138522
2008-08-01 14:42:42 +00:00
Eric Botcazou 769b26a6bd * gnat.dg/boolean_expr.ad[sb]: Rename to boolean_expr1.ad[sb].
From-SVN: r138520
2008-08-01 14:10:10 +00:00
Paolo Bonzini ec6fa56a8d acinclude.m4 ([GLIBCXX_CHECK_CLOCK_GETTIME]): Reinstate clock_gettime search, but only in libposix4, never link librt.
2008-08-01  Paolo Bonzini  <bonzini@gnu.org>
	    Chris Fairles  <chris.fairles@gmail.com>

	* acinclude.m4 ([GLIBCXX_CHECK_CLOCK_GETTIME]): Reinstate clock_gettime
	search, but only in libposix4, never link librt.
	* src/Makefile.am: Reinstate previous change to add GLIBCXX_LIBS.
        * configure: Regenerate.
        * configure.in: Likewise.
        * Makefile.in: Likewise.
        * src/Makefile.in: Likewise.
        * libsup++/Makefile.in: Likewise.
        * po/Makefile.in: Likewise.
        * doc/Makefile.in: Likewise.

Co-Authored-By: Chris Fairles <chris.fairles@gmail.com>

From-SVN: r138519
2008-08-01 14:06:38 +00:00
Eric Botcazou a981c96402 ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
* gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
	* gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
	and adjust for above renaming.
	* gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
	gnu_expr_alt_type parameter.  Convert the expression to it instead
	of changing its type in place.
	(build_function_stub): Adjust call to above function.

From-SVN: r138518
2008-08-01 14:02:10 +00:00
H.J. Lu de1132d194 i386.c (override_options): Replace ABI_STACK_BOUNDARY with MIN_STACK_BOUNDARY.
2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
	with MIN_STACK_BOUNDARY.
	(ix86_update_stack_boundary): Likewise.
	(ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
	STACK_BOUNDARY.

	* config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
	(MIN_STACK_BOUNDARY): This.

From-SVN: r138517
2008-08-01 06:30:03 -07:00
Andreas Schwab 62bb3fdb86 Remove conflict marker.
From-SVN: r138516
2008-08-01 13:14:39 +00:00
Richard Guenther df8fa7003b re PR middle-end/36997 (ICE with incompatible arg to '__builtin_ia32_paddq)
2008-08-01  Richard Guenther  <rguenther@suse.de>

	PR middle-end/36997
	* gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.

	* gcc.dg/pr36997.c: New testcase.

From-SVN: r138515
2008-08-01 13:12:38 +00:00
Eric Botcazou 6b093baca5 Revert incorrect patch.
From-SVN: r138514
2008-08-01 13:11:51 +00:00
Eric Botcazou 8df2e90229 decl.c (gnat_to_gnu_entity): Remove dead code.
2008-08-01  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
	code.  Do not get full definition of deferred constants with address
	clause for a use.  Do not ignore deferred constant definitions with
	address clause.  Ignore constant definitions already marked with the
	error node.
	<object>: Remove obsolete comment.  For a deferred constant with
	address clause, get the initializer from the full view.
	* gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
	Rework and remove obsolete comment.
	<N_Object_Declaration>: For a deferred constant with address clause,
	mark the full view with the error node.
	*  gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
	formatting nits.

From-SVN: r138513
2008-08-01 12:39:57 +00:00
Richard Guenther 5c3554b7ad re PR middle-end/36988 (ICE in gimple_rhs_has_side_effects, at gimple.c:2369)
2008-08-01  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/36988
	* tree-ssa-ccp.c (ccp_fold): Conversions of constants only
	do not matter if that doesn't change volatile qualification.

	* gcc.c-torture/compile/pr36988.c: New testcase.

From-SVN: r138512
2008-08-01 11:18:36 +00:00
Arnaud Charlet 585df50b0c rtsfind.ads: Add block IO versions of stream routines for Strings.
2008-08-01  Hristian Kirtchev  <kirtchev@adacore.com>

	* rtsfind.ads: Add block IO versions of stream routines for Strings.

	* bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
	sem_prag.adb, snames.adb, snames.ads, snames.h,
	par-prag.adb: Undo Canonical_Streams related changes.

	* s-rident.ads: Add new restriction No_Stream_Optimizations.

	* s-ststop.ads, s-ststop.adb: Comment reformatting.
	Define enumeration type to designate different IO mechanisms.
	Enchance generic package Stream_Ops_Internal to include an
	implementation of Input and Output.

	* exp_attr.adb (Find_Stream_Subprogram): If restriction
	No_Stream_Optimization is active, choose the default byte IO
	implementations of stream attributes for Strings.
	Otherwise use the corresponding block IO version.

From-SVN: r138511
2008-08-01 12:47:27 +02:00
Robert Dewar 20b40e7b44 par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to convert plain identifier into defining identifier.
2008-08-01  Robert Dewar  <dewar@adacore.com>

	* par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
	convert plain identifier into defining identifier.

From-SVN: r138510
2008-08-01 12:44:17 +02:00
Olivier Hainque 2eee5152fa decl.c (gnat_to_gnu_entity): Do not turn Ada Pure into GCC const, now implicitely implying nothrow as well.
ada/
        * decl.c (gnat_to_gnu_entity) <case E_Function>: Do not turn Ada
        Pure into GCC const, now implicitely implying nothrow as well.

        testsuite/
        * gnat.dg/raise_from_pure.ad[bs],
        * gnat.dg/wrap_raise_from_pure.ad[bs]: Support for ...
        * gnat.dg/test_raise_from_pure.adb: New test.

From-SVN: r138509
2008-08-01 10:36:01 +00:00
Arnaud Charlet 2b7473059a ioexcept.ads, [...]: Correct comment.
2008-08-01  Bob Duff  <duff@adacore.com>

	* ioexcept.ads, sequenio.ads, directio.ads: Correct comment.

From-SVN: r138508
2008-08-01 12:33:45 +02:00
Robert Dewar 30dc431315 lib-xref.adb: Add error defense.
2008-08-01  Robert Dewar  <dewar@adacore.com>

	* lib-xref.adb: Add error defense.

From-SVN: r138507
2008-08-01 12:33:29 +02:00
Robert Dewar 7406fc154b sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve warnings
2008-08-01  Robert Dewar  <dewar@adacore.com>

	* sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
	warnings

From-SVN: r138506
2008-08-01 12:33:21 +02:00
Arnaud Charlet 0c2466035d par-ch3.adb (P_Type_Declaration): Properly handle missing type keyword
2008-08-01  Robert Dewar  <dewar@adacore.com>

	* par-ch3.adb (P_Type_Declaration): Properly handle missing type
	keyword

From-SVN: r138503
2008-08-01 11:31:42 +02:00
Thomas Quinot 2fc66c69c7 sem_ch12.adb: Minor comment reformatting
2008-08-01  Thomas Quinot  <quinot@adacore.com>

	* sem_ch12.adb: Minor comment reformatting

From-SVN: r138502
2008-08-01 11:31:18 +02:00
Robert Dewar 9a7da240bb 2008-08-01 Robert Dewar <dewar@adacore.com>
* sem_res.adb:
	(Resolve_Call): Check violation of No_Specific_Termination_Handlers

From-SVN: r138501
2008-08-01 11:31:06 +02:00
Robert Dewar a30a01fea9 sem_prag.adb (Analyze_Pragma): Put entries in alpha order
2008-08-01  Robert Dewar  <dewar@adacore.com>

	* sem_prag.adb (Analyze_Pragma): Put entries in alpha order
	(Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma

From-SVN: r138500
2008-08-01 11:30:53 +02:00
Robert Dewar 9e246736bf scans.ads: Minor reformatting.
2008-08-01  Robert Dewar  <dewar@adacore.com>

	* scans.ads: Minor reformatting.

From-SVN: r138499
2008-08-01 11:30:37 +02:00
Robert Dewar 60e435fe21 par-prag.adb (Prag, [...]): Deal with upper half encodings
2008-08-01  Robert Dewar  <dewar@adacore.com>

	* par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
	half encodings

From-SVN: r138498
2008-08-01 11:30:26 +02:00
Robert Dewar f7fd2ec357 s-os_lib.adb: Minor reformatting
2008-08-01  Robert Dewar  <dewar@adacore.com>

	* s-os_lib.adb: Minor reformatting

From-SVN: r138497
2008-08-01 11:30:14 +02:00
Robert Dewar 692a07bf57 prj.ads: Minor reformatting
2008-08-01  Robert Dewar  <dewar@adacore.com>

	* prj.ads: Minor reformatting

From-SVN: r138496
2008-08-01 11:30:05 +02:00
Robert Dewar 63319f5837 sem_ch4.adb: Minor reformatting Minor code reorganization
2008-08-01  Robert Dewar  <dewar@adacore.com>

	* sem_ch4.adb: Minor reformatting
	Minor code reorganization

From-SVN: r138495
2008-08-01 11:29:48 +02:00
Robert Dewar 9c391a2156 prj-nmsc.adb: Minor reformatting
2008-08-01  Robert Dewar  <dewar@adacore.com>

	* prj-nmsc.adb: Minor reformatting

From-SVN: r138494
2008-08-01 11:29:39 +02:00
Gary Dismukes 8ca3bf9177 exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing correct accessibility levels.
2008-08-01  Gary Dismukes  <dismukes@adacore.com>

	* exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
	correct accessibility levels. In the "when others" case, retrieve the
	access level of the Etype of Prev rather than Prev_Orig, because the
	original exression has not always been analyzed.

From-SVN: r138493
2008-08-01 11:29:30 +02:00
Eric Botcazou f252a7d6bd utils.c (convert_vms_descriptor): Add gnu_expr_alt_type parameter.
2008-08-01  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc-interface/utils.c (convert_vms_descriptor): Add gnu_expr_alt_type
	parameter.
	Convert the expression to it instead of changing its type in place.
	(build_function_stub): Adjust call to above function.

From-SVN: r138492
2008-08-01 11:10:16 +02:00
Arnaud Charlet 1cb17b78bd sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a procedure call whose prefix is a parameterless...
2008-08-01  Ed Schonberg  <schonberg@adacore.com>

	* sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
	procedure call whose prefix
	is a parameterless function call that returns an access_to_procedure.

From-SVN: r138491
2008-08-01 11:04:06 +02:00
Gary Dismukes d54c4e31c2 exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets Orig_Prev to Prev in the case where...
2008-08-01  Gary Dismukes  <dismukes@adacore.com>

	* exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
	Orig_Prev to Prev in the case where the actual is N_Function_Call or
	N_Identifier. This was interfering with other cases that are rewritten
	as N_Identifier, such as allocators, resulting in passing of the wrong
	accessibility level, and based on testing this code is apparently no
	longer needed at all.

From-SVN: r138490
2008-08-01 11:03:35 +02:00
Ed Schonberg 14037bbc9c 2008-08-01 Ed Schonberg <schonberg@adacore.com>
* sem_prag.adb:
	(Check_Precondition_Postcondition): If not generating code, analyze the
	expression in a postcondition that appears in a subprogram body, so that
	it is properly decorated for ASIS use.

From-SVN: r138489
2008-08-01 11:03:23 +02:00
Vincent Celier 8045c47954 2008-08-01 Vincent Celier <celier@adacore.com>
* mlib-utl.adb:
	(Adalib_Path): New variable to store the path of the adalib directory
	when procedure Specify_Adalib_Dir is called.
	(Lib_Directory): If Adalib_Path is not null, return its value
	(Specify_Adalib_Dir): New procedure
	
	* mlib-utl.ads (Specify_Adalib_Dir): New procedure

From-SVN: r138488
2008-08-01 11:03:11 +02:00
Vincent Celier 434a280743 prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
2008-08-01  Vincent Celier  <celier@adacore.com>

	* prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
	
	* prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
	
	* prj.adb (Object_Exist_For): Use Object_Generated, not
	Objects_Generated that is removed and was never modified anyway.

	* prj.ads:
	(Path_Syntax_Kind): New enumeration type
	(Language_Config): New component Path_Syntax, defaulted to Host.
	Components PIC_Option and Objects_Generated removed, as they are not
	used.

	* snames.adb: New standard name Path_Syntax
	
	* snames.ads: New standard name Path_Syntax

From-SVN: r138487
2008-08-01 11:02:58 +02:00
Ed Schonberg 44114dff15 checks.adb (Apply_Float_Conversion_Check): If the expression to be converted is a real literal and the target type has...
2008-08-01  Ed Schonberg  <schonberg@adacore.com>

	* checks.adb (Apply_Float_Conversion_Check): If the expression to be
	converted is a real literal and the target type has static bounds,
	perform the conversion exactly to prevent floating-point anomalies on
	some targets.

From-SVN: r138486
2008-08-01 11:02:44 +02:00
Robert Dewar b431121450 sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not generating code
2008-08-01  Robert Dewar  <dewar@adacore.com>

	* sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
	generating code

From-SVN: r138485
2008-08-01 11:02:34 +02:00
Arnaud Charlet d1b4f87d1b s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in paths...
2008-08-01  Jerome Lambourg  <lambourg@adacore.com>

	* s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
	paths, which are authorized by Windows but can lead to errors when used
	elsewhere.

From-SVN: r138484
2008-08-01 10:35:21 +02:00
Robert Dewar 766d7add51 sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of Raise_Exception
2008-08-01  Robert Dewar  <dewar@adacore.com>

	* sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
	Raise_Exception

From-SVN: r138483
2008-08-01 10:35:04 +02:00
Jose Ruiz bd56b3fca7 adaint.c (__gnat_tmp_name): Refine the generation of temporary names for RTX.
2008-08-01  Jose Ruiz  <ruiz@adacore.com>

	* adaint.c (__gnat_tmp_name): Refine the generation of temporary names
	for RTX. Adding a suffix that is incremented at each iteration.

From-SVN: r138482
2008-08-01 10:34:50 +02:00
Jose Ruiz 7273484240 gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and rts-rtx-w32).
2008-08-01  Jose Ruiz  <ruiz@adacore.com>

	* gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
	rts-rtx-w32).

From-SVN: r138481
2008-08-01 10:19:29 +02:00