Commit Graph

88794 Commits

Author SHA1 Message Date
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
Arnaud Charlet
cfb02ad18b sem_ch12.ads (Need_Subprogram_Instance_Body): new function...
2008-08-01  Ed Schonberg  <schonberg@adacore.com>

	* sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
	a pending instantiation for the body of a subprogram that is to be
	inlined.

	* sem_ch12.adb:
	(Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.

	* sem_prag.adb (Make_Inline): If the pragma applies to an instance,
	create a pending instance for its body, so that calls to the subprogram
	can be inlined by the back-end.

From-SVN: r138480
2008-08-01 10:19:04 +02:00
Paolo Bonzini
47ad7893fb configure.ac: Do not generate libada-mk.
gcc:
2008-08-01  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac: Do not generate libada-mk.  Do not subst
	host_cc_for_libada.
	* libada-mk.in: Remove.
	* Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
	* configure: Regenerate.

libada:
2008-08-01  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac (warn_cflags): Substitute.
	* configure: Regenerate.
	* Makefile.in (libdir, WARN_CFLAGS): Substitute.
	(GCC_WARN_CFLAGS): Remove NOCOMMON_FLAG.
	(ADA_CFLAGS, T_ADA_CFLAGS, X_ADA_CFLAGS, ALL_ADA_CFLAGS): Remove,
	they were unused.
	(libada-mk): Do not include.  Include libgcc.mvars instead.
	(tmake_file): Remove, do not include.
	(FLAGS_TO_PASS): Pass dummy values for exeext and CC.
	* configure: Regenerate.

gnattools:
2008-08-01  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac (warn_cflags): Substitute.
	* configure: Regenerate.
	* Makefile.in (libdir, exeext, WARN_CFLAGS): Substitute.
	(GCC_WARN_CFLAGS): Remove NOCOMMON_FLAG.
	(ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Remove as they were unused.
	(libsubdir): Remove.
	(libada-mk): Do not include.  Include libgcc.mvars instead.
	(xmake_file): Remove, do not include.

From-SVN: r138479
2008-08-01 08:18:13 +00:00
Arnaud Charlet
e1bb4e7129 Resync.
From-SVN: r138475
2008-08-01 09:56:48 +02:00
Jose Ruiz
e6d44fcae2 adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam nor tmpnam...
2008-08-01  Jose Ruiz  <ruiz@adacore.com>

	* adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
	nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
	name.

From-SVN: r138474
2008-08-01 09:56:32 +02:00
Doug Rupp
d628c01538 gnat_rm.texi: Document new mechanism Short_Descriptor.
2008-08-01  Doug Rupp  <rupp@adacore.com>

	* gnat_rm.texi: Document new mechanism Short_Descriptor.
	
	* types.ads (Mechanism_Type): Modify range for new Short_Descriptor
	mechanism values.

	* sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
	mechanism and Short_Descriptor mechanism values.

	* snames.adb (preset_names): Add short_descriptor entry.

	* snames.ads: Add Name_Short_Descriptor.

	* types.h: Add new By_Short_Descriptor mechanism values.

	* sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
	mechanism and Short_Descriptor mechanism values.

	* sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
	values.
	(Descriptor_Codes): Modify range for new mechanism values.

	* treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
	mechanism values.

	* gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
	(gnat_to_gnu_param): Handle By_Short_Descriptor.

	* gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
	(build_vms_descriptor32): New prototype.
	(fill_vms_descriptor): Remove unneeded gnat_actual parameter.

	* gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
	argument in call fill_vms_descriptor.

	* gcc-interface/utils.c (build_vms_descriptor32): Renamed from
	build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
	(build_vms_descriptor): Renamed from build_vms_descriptor64. 
	(convert_vms_descriptor32): New function.
	(convert_vms_descriptor64): New function.
	(convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
	descriptors.

	* gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
	no longer needed.

From-SVN: r138473
2008-08-01 09:56:20 +02:00
Robert Dewar
73f0dc7a66 scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
2008-08-01  Robert Dewar  <dewar@adacore.com>

	* scng.adb (Error_Illegal_Wide_Character): Bump scan pointer

From-SVN: r138472
2008-08-01 09:56:07 +02:00
Arnaud Charlet
bca3ab79f4 Resync.
From-SVN: r138470
2008-08-01 09:43:16 +02:00
Arnaud Charlet
be658959d8 Update comments.
From-SVN: r138469
2008-08-01 09:41:55 +02:00
Robert Dewar
3fd68ccb7e scng.adb: Minor reformatting
2008-08-01  Robert Dewar  <dewar@adacore.com>

	* scng.adb: Minor reformatting

From-SVN: r138468
2008-08-01 09:39:30 +02:00
Doug Rupp
ea062149e2 vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
2008-08-01  Doug Rupp  <rupp@adacore.com>

	* vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING

From-SVN: r138467
2008-08-01 09:39:22 +02:00
Robert Dewar
2933820e04 opt.ads: Minor documentation fix
2008-08-01  Robert Dewar  <dewar@adacore.com>

	* opt.ads: Minor documentation fix

From-SVN: r138466
2008-08-01 09:39:11 +02:00
Robert Dewar
2e43faea07 sem_util.ads: Minor reformatting.
2008-08-01  Robert Dewar  <dewar@adacore.com>

	* sem_util.ads: Minor reformatting.

From-SVN: r138465
2008-08-01 09:39:03 +02:00
Doug Rupp
ad316add2f mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a dummy transfer address for debugging.
2008-08-01  Doug Rupp  <rupp@adacore.com>

	* mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
	dummy transfer address for debugging.
	
	* mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.

From-SVN: r138464
2008-08-01 09:38:54 +02:00
Ed Schonberg
0f300ef506 exp_disp.adb (Expand_Interface_Conversion): If the target type is a tagged synchronized type, use corresponding record type.
2008-08-01  Ed Schonberg  <schonberg@adacore.com>

	* exp_disp.adb (Expand_Interface_Conversion): If the target type is a
	tagged synchronized type, use corresponding record type.

From-SVN: r138463
2008-08-01 09:38:45 +02:00
Robert Dewar
3d2e1f1213 gnatchop.adb: Minor reformatting
2008-08-01  Robert Dewar  <dewar@adacore.com>

	* gnatchop.adb: Minor reformatting

From-SVN: r138462
2008-08-01 09:38:36 +02:00