87700 Commits

Author SHA1 Message Date
Richard Guenther
6fe2f65a17 re PR tree-optimization/36245 (internal compiler error: in build2_stat, at tree.c:3116)
2008-05-27  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/36245
	* tree-ssa-address.c (add_to_parts): Deal with non-pointer
	bases.

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

From-SVN: r136029
2008-05-27 13:10:18 +00:00
Arnaud Charlet
35b8040518 Resync.
From-SVN: r136028
2008-05-27 14:37:01 +02:00
Robert Dewar
5a30024a49 mlib-prj.adb: Minor reformatting
2008-05-27  Robert Dewar  <dewar@adacore.com>

	* mlib-prj.adb: Minor reformatting

	* prj-part.adb: Minor reformatting

	* prj.ads: Minor reformatting

	* exp_ch3.adb: Minor reformatting.

	* sem_ch3.ads: Minor reformatting

	* sem_eval.adb: Minor reformatting

From-SVN: r136027
2008-05-27 14:36:43 +02:00
Ed Schonberg
0e08f7ab15 exp_aggr.adb (Build_Array_Aggr_Code): If component type includes tasks and context is an object declaration.
2008-05-27  Ed Schonberg  <schonberg@adacore.com>

	* exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
	tasks and context is an object declaration. create master entity before
	expansion.

From-SVN: r136026
2008-05-27 14:36:32 +02:00
Bob Duff
d33fb1e6de sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an untagged private type with a tagged full type...
2008-05-27  Bob Duff  <duff@adacore.com>

	* sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
	untagged private type with a tagged full type, where the full type has
	a self reference, create the corresponding class-wide type early, in
	case the self reference is "access T'Class".

From-SVN: r136025
2008-05-27 14:36:23 +02:00
Arnaud Charlet
592b9a75fc * prj-nmsc.adb: Minor reformatting
From-SVN: r136024
2008-05-27 14:36:15 +02:00
Arnaud Charlet
0773617140 a-ststio.adb, [...]: Further code clean up of previous change.
* a-ststio.adb, s-direio.adb: Further code clean up of previous change.
	Update comments.

From-SVN: r136023
2008-05-27 14:36:04 +02:00
Arnaud Charlet
d5c998a9fe Resync.
From-SVN: r136021
2008-05-27 13:58:03 +02:00
Arnaud Charlet
100a5d66a4 Replace heavy address clause by 'Unrestricted_Access...
Replace heavy address clause by 'Unrestricted_Access, cleaner and more portable
across GNAT targets, since this kind of address clause is not supported by
VM back-ends (.NET/JGNAT).

From-SVN: r136020
2008-05-27 13:55:54 +02:00
Vincent Celier
ea9fba99de 2008-05-27 Vincent Celier <celier@adacore.com>
* prj-part.adb:
	(Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
	a project file, so that symbolic links are not resolved.

From-SVN: r136019
2008-05-27 13:55:41 +02:00
Arnaud Charlet
3aa62371fc Replace address clause by unrestricted_access, simpler and compatible with .NET.
From-SVN: r136018
2008-05-27 13:55:29 +02:00
Bob Duff
65d0beb0e1 gnat_rm.texi: Document the new behavior regarding trampolines.
2008-05-27  Bob Duff  <duff@adacore.com>

	* gnat_rm.texi:
	Document the new behavior regarding trampolines.

From-SVN: r136017
2008-05-27 13:55:11 +02:00
Ed Schonberg
a38ff9b14f exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains tasks...
2008-05-27  Ed Schonberg  <schonberg@adacore.com>

	* exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
	tasks, create an activation chain now, before the expansion into
	assignments and build-in-place calls that require the presence of an
	activation chain.
	(Backend_Processing_Possible): If the component type is inherently
	limited, the aggregate must be expanded into individual built-in-place
	assignments.

	* sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
	determine whether an allocation extra parameter must be built, to
	handle case of a private type whose full type is a discriminated type
	with defaults.

From-SVN: r136016
2008-05-27 13:55:00 +02:00
Vincent Celier
e4b8682d4f gnatcmd.adb: <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
2008-05-27  Vincent Celier  <celier@adacore.com>

	* gnatcmd.adb:
	<prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack

From-SVN: r136015
2008-05-27 13:54:50 +02:00
Andreas Krebbel
fb492564aa s390.md: Replace all occurences of the 'm' constraint with 'RT'.
2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>

	* config/s390/s390.md: Replace all occurences of the 'm'
	constraint with 'RT'.

From-SVN: r136014
2008-05-27 11:49:40 +00:00
Andreas Krebbel
3af8e996ef s390.md ("cpu_facility", "enabled"): Attribute definitions added.
2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>

	* config/s390/s390.md ("cpu_facility", "enabled"): Attribute
	definitions added.
	("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
	"*movdi_64".
	("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
	("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
	("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".

From-SVN: r136013
2008-05-27 11:48:14 +00:00
Andreas Krebbel
7ac28727fb reload.c: (find_reloads): Skip alternatives according to the "enabled" attribute.
2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>

	* reload.c: (find_reloads): Skip alternatives according to the
	"enabled" attribute. Constify the constraint variable.
	* recog.c (get_attr_enabled): Add default implementation.
	(extract_insn): Set the alternative_enabled_p array
	in the recog_data struct.
	(preprocess_constraints, constrain_operands): Skip
	alternatives according to the "enabled" attribute
	* recog.h (struct recog_data): New field alternative_enabled_p.
	(skip_alternative): New inline function.
	* regclass.c: (record_operand_costs): Check the "enabled"
	attribute.
	(record_reg_classes): Skip alternative according to the
	"enabled" attribute.

	* doc/md.texi: Add documention for the "enabled" attribute.

From-SVN: r136012
2008-05-27 11:46:45 +00:00
Andreas Krebbel
a4edaf8359 defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>

	* defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
	* postreload.c (reload_cse_simplify_operands): Replace 'm'
	constraint with TARGET_MEM_CONSTRAINT.
	* recog.c (asm_operand_ok, preprocess_constraints,
	constrain_operands): Likewise.
	* regclass.c (record_reg_classes): Likewise.
	* reload.c (find_reloads, alternative_allows_const_pool_ref):
	Likewise.
	* reload1.c (maybe_fix_stack_asms): Likewise.
	* stmt.c (parse_output_constraint, parse_input_constraint):
	Likewise.
	* recog.h: Adjust comment.
	* genpreds.c (generic_constraint_letters): Remove 'm' constraint.
	* genoutput.c (note_constraint): Don't emit error for 'm'
	constraint.
	* doc/md.texi: Add a note to description of 'm' constraint.
	* doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.

From-SVN: r136011
2008-05-27 11:41:10 +00:00
Arnaud Charlet
79d2a7279f Resync.
From-SVN: r136010
2008-05-27 13:00:39 +02:00
Eric Botcazou
469dfae932 tree-sra.c (sra_type_can_be_decomposed_p): Make sure that the bitfield is of integral type before testing its precision.
* tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
	that the bitfield is of integral type before testing its precision.

From-SVN: r136009
2008-05-27 11:00:38 +00:00
Vincent Celier
3b3c04308e 2008-05-27 Vincent Celier <celier@adacore.com>
* gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
	prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
	mlib-tgt.adb, prj-env.adb, prj-env.ads:
	(Path_Information): New record type
	Use component of type Path_Information when there are two paths, one in
	canonical format and one in display format.
	Update the project manager to these new components.

From-SVN: r136008
2008-05-27 13:00:07 +02:00
Arnaud Charlet
d153b45808 bindgen.adb: Update comments.
* bindgen.adb: Update comments.

	* s-tasinf-mingw.adb: Add "with" of System.OS_Interface

From-SVN: r136007
2008-05-27 12:59:55 +02:00
Arnaud Charlet
0f99f391ed Resync
From-SVN: r136006
2008-05-27 12:44:34 +02:00
Robert Dewar
9a3c994027 makeutl.adb: Minor reformatting
2008-05-27  Robert Dewar  <dewar@adacore.com>

	* makeutl.adb: Minor reformatting
	* prj-nmsc.adb: Minor reformatting
	* s-stausa.adb: Minor reformatting
	* s-stausa.ads: Minor reformatting
	* sem_ch6.adb: Minor reformatting

From-SVN: r136005
2008-05-27 12:44:21 +02:00
Thomas Quinot
6ba6b1e333 sem_res.adb: Minor comment fixes
2008-05-27  Thomas Quinot  <quinot@adacore.com>

	* sem_res.adb: Minor comment fixes

From-SVN: r136004
2008-05-27 12:44:05 +02:00
Arnaud Charlet
d18af35f61 Resync.
From-SVN: r136003
2008-05-27 12:14:41 +02:00
Thomas Quinot
e2baae4e1c (System.File_IO.{Close, Delete, Reset}): Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
2008-05-27  Thomas Quinot  <quinot@adacore.com>

	(System.File_IO.{Close, Delete, Reset}):
	Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
	
	(Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
	Pass File parameter by reference.

From-SVN: r136002
2008-05-27 12:14:25 +02:00
Ed Schonberg
ab8bfb6497 2008-05-27 Ed Schonberg <schonberg@adacore.com>
* sem_ch3.adb:
	(Get_Discr_Value): Remove obsolete code that failed to find the value
	of a discriminant for an inherited task component appearing in a type
	extension.

From-SVN: r136001
2008-05-27 12:14:09 +02:00
Vincent Celier
66f3c0b0de 2008-05-27 Vincent Celier <celier@adacore.com>
* prj-nmsc.adb:
	(Check_File): Make sure that a unit that replaces the same unit in a
	 project being extended is properly processed.

From-SVN: r136000
2008-05-27 12:14:01 +02:00
Quentin Ochem
a494036c8e s-stausa.adb (Initialize): Updated result initialization, and initialization of environment stack.
2008-05-27  Quentin Ochem  <ochem@adacore.com>

	* s-stausa.adb (Initialize): Updated result initialization, and
	initialization of environment stack.
	(Fill_Stack): Improved computation of the pattern zone, taking into
	account already filled at the calling point.
	(Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
	Measure and Overflow_Guard.
	(Report_Result): Fixed computation of the result using new fields of
	Stack_Analyzer.
	
	* s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
	params by more explicit Stack_Size / Max_Pattern_Size params.
	(Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
	Added Stack_Used_When_Filling field.
	(Task_Result): Replaced Measure / Overflow_Guard by more explicit
	Min_Measure and Max_Measure fields.
	
	* s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.

From-SVN: r135999
2008-05-27 12:13:53 +02:00
Arnaud Charlet
ce2798e855 * exp_ch6.adb: Minor reformatting
From-SVN: r135998
2008-05-27 12:13:45 +02:00
Thomas Quinot
641d3093f8 exp_aggr.adb: Add ??? comment Fix typo
2008-05-27  Thomas Quinot  <quinot@adacore.com>

	* exp_aggr.adb: Add ??? comment
	Fix typo

From-SVN: r135997
2008-05-27 12:13:35 +02:00
Thomas Quinot
a573518c6f makeutl.adb: Minor code reorganization
2008-05-27  Thomas Quinot  <quinot@adacore.com>

	* makeutl.adb: Minor code reorganization

From-SVN: r135996
2008-05-27 12:13:25 +02:00
Arnaud Charlet
f6879a7559 * gnat.dg/interface5.ad[sb]: New test.
From-SVN: r135995
2008-05-27 11:30:35 +02:00
Arnaud Charlet
aeff280b14 Resync.
From-SVN: r135994
2008-05-27 11:24:13 +02:00
Vincent Celier
1e8878861c 2008-05-27 Vincent Celier <celier@adacore.com>
* makeutl.ads, makeutl.adb:
	(Set_Location): New procedure
	(Get_Location): New function
	(Update_Main): New procedure

From-SVN: r135993
2008-05-27 11:20:48 +02:00
Ed Schonberg
fceeaab66b 2008-05-27 Ed Schonberg <schonberg@adacore.com>
* sem_ch6.adb:
	(Is_Interface_Conformant): Handle properly a primitive operation that
	overrides an interface function with a controlling access result.
	(Type_Conformance): If Skip_Controlling_Formals is true, when matching
	inherited and overriding operations, omit as well the conformance check
	on result types, to prevent spurious errors.

From-SVN: r135992
2008-05-27 11:20:38 +02:00
Arnaud Charlet
abed5dc6ff * sem_ch3.adb: Minor reformatting
From-SVN: r135991
2008-05-27 11:20:28 +02:00
Vincent Celier
c7867d82ac 2008-05-27 Vincent Celier <celier@adacore.com>
* prj-nmsc.adb:
	(Process_Sources_In_Multi_Language_Mode): Check that there are not two
	sources of the same project that have the same object file name.
	(Find_Explicit_Sources): Always remove a source exception that was not
	found.

From-SVN: r135990
2008-05-27 11:20:12 +02:00
Arnaud Charlet
dd383eebef * gnat.dg/sync1.ad[sb]: New test.
From-SVN: r135989
2008-05-27 11:11:45 +02:00
Arnaud Charlet
7bf402c1bd Resync.
From-SVN: r135988
2008-05-27 11:11:02 +02:00
Eric Botcazou
81aa4e379b system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>

	* system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
	* system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
	* system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
	* system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
	* system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
	* system-linux-x86.ads (Always_Compatible_Rep): Likewise.
	* system-mingw.ads (Always_Compatible_Rep): Likewise.
	* system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
	* system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
	* system-solaris-x86.ads (Always_Compatible_Rep): Likewise.

From-SVN: r135987
2008-05-27 11:10:01 +02:00
Vincent Celier
32ffda3f89 2008-05-27 Vincent Celier <celier@adacore.com>
* prj-nmsc.adb:
	(Check_Library): Allow standard project to be extended as a static
	library project.
	(Get_Mains): Do not inherit attribute Main in an extending library
	project.

From-SVN: r135986
2008-05-27 11:09:47 +02:00
Arnaud Charlet
52268145ef Resync
From-SVN: r135985
2008-05-27 10:55:46 +02:00
Thomas Quinot
8e4bea294b exp_dist.adb: Minor reformating
2008-05-27  Thomas Quinot  <quinot@adacore.com>

	* exp_dist.adb: Minor reformating

From-SVN: r135984
2008-05-27 10:50:54 +02:00
Doug Rupp
612c533690 2008-05-27 Doug Rupp <rupp@adacore.com>
* exp_ch6.adb:
	(Expand_N_Function_Call): Fix comments. Minor reformatting.

	* exp_vfpt.ads:
	(Expand_Vax_Foreign_Return): Fix comments.

From-SVN: r135983
2008-05-27 10:50:43 +02:00
Vincent Celier
f6e8d321dd xsnames.adb: Remove unused variable Oname
2008-05-27  Vincent Celier  <celier@adacore.com>

	* xsnames.adb: Remove unused variable Oname

From-SVN: r135982
2008-05-27 10:50:31 +02:00
Vincent Celier
b3af75af77 prj-attr.adb: Add new project level attribute Map_File_Option
2008-05-27  Vincent Celier  <celier@adacore.com>

	* prj-attr.adb: Add new project level attribute Map_File_Option
	
	* prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
	
	* prj.ads: Minor reformatting and comment update
	(Project_Configuration): New component Map_File_Option
	
	* snames.adb: New standard name Map_File_Option
	
	* snames.ads: New standard name Map_File_Option

From-SVN: r135981
2008-05-27 10:50:22 +02:00
Vincent Celier
eca5286b1c gnat_ugn.texi: Add succinct documentation for attribute Excluded_Source_List_File
2008-05-27  Vincent Celier  <celier@adacore.com>

	* gnat_ugn.texi:
	Add succinct documentation for attribute Excluded_Source_List_File

From-SVN: r135980
2008-05-27 10:50:13 +02:00
Gary Dismukes
491016e570 sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype to the known type entity E...
2008-05-27  Gary Dismukes  <dismukes@adacore.com>

	* sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
	to the known type entity E, rather than setting it to Any_Type. Fixes
	possible blowup in function Base_Init_Proc, as called from Freeze_Entity
	for objects whose type had an illegal constraint.

From-SVN: r135979
2008-05-27 10:50:04 +02:00