87922 Commits

Author SHA1 Message Date
Robert Dewar
5b2217f83f restrict.ads: Add missing restrictions, and properly label all GNAT defined ones
2008-05-28  Robert Dewar  <dewar@adacore.com>

	* restrict.ads:
	Add missing restrictions, and properly label all GNAT defined ones
	
	* rtsfind.ads:
	Add entry for Ada_Real_Time.Timing_Events.Timing_Event
	Add entry for Ada.Task_Termination.Set_Specific_Handler
	Add entry for Ada.Task_Termination.Specific_Handler
	
	* s-rident.ads:
	Add missing restrictions and properly mark all gnat defined ones
	
	* sem_ch3.adb:
	(Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
	
	* sem_res.adb:
	(Resolve_Call): Check violation of No_Specific_Termination_Handlers

	* gnat_rm.texi: Add missing restrictions, and properly label all
	GNAT defined ones

From-SVN: r136087
2008-05-28 15:47:56 +02:00
Arnaud Charlet
0b795892d2 Make-lang.in: Remove gprmake.
* Make-lang.in: Remove gprmake.

	* gprmake.adb, makegpr.ads, makegpr.adb: Removed.

From-SVN: r136084
2008-05-28 15:30:37 +02:00
Arnaud Charlet
aa94ab9412 old_errors.adb, [...]: Adjust.
* gnat.dg/old_errors.adb, gnat.dg/deep_old.adb: Adjust.
	* gnat.dg/fixce.adb: New test.
	* gnat.dg/frunaligned*.ad[sb]: New test.

From-SVN: r136082
2008-05-28 15:20:22 +02:00
Arnaud Charlet
5840819afa Resync.
From-SVN: r136081
2008-05-28 15:06:30 +02:00
Robert Dewar
ebd01830cf 2008-05-28 Robert Dewar <dewar@adacore.com>
* exp_ch5.adb:
	(Expand_Simple_Function_Return): Copy unaligned result into temporary

From-SVN: r136080
2008-05-28 15:05:55 +02:00
Robert Dewar
63bdc3ea17 exp_fixd.adb (Build_Multiply): Correct one-off error in computing size
2008-05-28  Robert Dewar  <dewar@adacore.com>

	* exp_fixd.adb (Build_Multiply): Correct one-off error in computing
	size

From-SVN: r136079
2008-05-28 15:05:46 +02:00
Robert Dewar
71a555b3b9 gnat_rm.texi: Add note on Old giving warning when applied to constant
2008-05-28  Robert Dewar  <dewar@adacore.com>

	* gnat_rm.texi: Add note on Old giving warning when applied to constant

	* sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
	a constant

From-SVN: r136078
2008-05-28 15:05:35 +02:00
Ed Schonberg
6765b31061 sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving improper progenitor names...
2008-05-28  Ed Schonberg  <schonberg@adacore.com>

	* sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
	improper progenitor names, and avoid cascaded errors.

From-SVN: r136077
2008-05-28 15:05:20 +02:00
Arnaud Charlet
449be9fa98 iface_eq_test.ads, [...]: New test.
* gnat.dg/specs/iface_eq_test.ads,
	gnat.dg/specs/iface_eq_test-child.ads: New test.
	* gnat.dg/specs/self_class.ads: New test.

From-SVN: r136073
2008-05-28 14:38:31 +02:00
Javier Miranda
8c3dd7a8fe sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support for user-defined predefined primitives.
2008-05-28  Javier Miranda  <miranda@adacore.com>

	* sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
	for user-defined predefined primitives.
	
	* sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
	(Find_Overridden_Synchronized_Primitive): Ditto.

	* sem_ch6.adb (Check_Synchronized_Overriding): Ditto.

From-SVN: r136072
2008-05-28 14:36:07 +02:00
Mark Shinwell
33db2060b0 mips.c (mips_cpu_info_table): Add loongson2e and loongson2f entries.
2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>

	* config/mips/mips.c (mips_cpu_info_table): Add loongson2e
	and loongson2f entries.
	(mips_rtx_cost_data): Add entries for Loongson-2E/2F.
	* config/mips/mips.h (processor_type): Add Loongson-2E
	and Loongson-2F entries.
	(TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
	(MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
	* config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
	* doc/invoke.texi (MIPS Options): Document loongson2e
	and loongson2f processor names.

From-SVN: r136071
2008-05-28 10:33:39 +00:00
GCC Administrator
3dce86b99c Daily bump.
From-SVN: r136064
2008-05-28 00:17:31 +00:00
Andy Hutchinson
0f7e9e4e69 data-dep-1.c: Skip test for avr-*-* too much code.
* gcc.dg/tree-ssa/data-dep-1.c: Skip test for avr-*-* too much code.
* gcc.dg/tree-ssa/ldist-3.c: Ditto.
* gcc.dg/tree-ssa/ldist-5.c: Ditto.
* gcc.dg/tree-ssa/ifc-20040816-2 .c: Adjust for int size < 4 bytes.
* gcc.dg/tree-ssa/pr32540-1.c: Ditto.
* gcc.dg/tree-ssa/pr32540-2.c: Ditto.
* gcc.dg/tree-ssa/ssa-lim-5.c: Ditto.
* gcc.dg/tree-ssa/pr23115.c: Adjust test for double size < 8 bytes.

From-SVN: r136058
2008-05-27 22:20:10 +00:00
H.J. Lu
23ac85e7a8 re PR target/35767 (x86 backend uses aligned load on unaligned memory)
gcc/

2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/35767
	PR target/35771
	* config/i386/i386.c (ix86_function_arg_boundary): Use
	alignment of canonical type.
	(ix86_expand_vector_move): Check unaligned memory access for
	all SSE modes.

gcc/testsuite/

2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/35767
	PR target/35771
	* gcc.target/i386/pr35767-1.c: New.
	* gcc.target/i386/pr35767-1d.c: Likewise.
	* gcc.target/i386/pr35767-1i.c: Likewise.
	* gcc.target/i386/pr35767-2.c: Likewise.
	* gcc.target/i386/pr35767-2d.c: Likewise.
	* gcc.target/i386/pr35767-2i.c: Likewise.
	* gcc.target/i386/pr35767-3.c: Likewise.
	* gcc.target/i386/pr35767-4.c: Likewise.
	* gcc.target/i386/pr35767-5.c: Likewise.

From-SVN: r136054
2008-05-27 13:18:33 -07:00
Tobias Burnus
61bed51903 assignment_3.f90: Add missing cleanup-modules.
2008-05-27  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/assignment_3.f90: Add missing cleanup-modules.

From-SVN: r136053
2008-05-27 21:31:36 +02:00
Tobias Burnus
795dc58727 re PR fortran/36316 (type mismatch in binary expression caught by verify_gimple)
2008-05-27  Tobias Burnus  <burnus@net-b.de>

        PR fortran/36316
        * trans-array.c (gfc_set_loop_bounds_from_array_spec):
        Add missing fold_convert.

2008-05-27  Tobias Burnus  <burnus@net-b.de>

        PR fortran/36316
        * gfortran.dg/assignment_3.f90: New.

From-SVN: r136052
2008-05-27 21:22:01 +02:00
Richard Sandiford
75e8fd2f71 fortran-torture.exp (get-fortran-torture-options): New function, replacing old FORTRAN_TORTURE_OPTIONS code.
gcc/testsuite/
	* lib/fortran-torture.exp (get-fortran-torture-options):
	New function, replacing old FORTRAN_TORTURE_OPTIONS code.
	* gfortran.fortran-torture/compile/compile.exp: Use
	[get-fortran-torture-options] instead of $FORTRAN_TORTURE_OPTIONS.
	* gfortran.fortran-torture/execute/execute.exp: Likewise.

From-SVN: r136050
2008-05-27 18:57:10 +00:00
H.J. Lu
3395aa0532 dwarf2out.c (current_fde): Change return type to dw_fde_ref.
2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>

	* dwarf2out.c (current_fde): Change return type to dw_fde_ref.
	Moved to the front of file.

From-SVN: r136046
2008-05-27 11:43:57 -07:00
Xuepeng Guo
3ce6e42e46 dwarf2out.c (current_fde): New.
2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
	    H.J. Lu  <hongjiu.lu@intel.com>

	* dwarf2out.c (current_fde): New.
	(add_cfi): Use it.
	(lookup_cfa:): Likewise.
	(dwarf2out_end_epilogue): Likewise.
	(dwarf2out_note_section_used): Likewise.

Co-Authored-By: H.J. Lu <hongjiu.lu@intel.com>

From-SVN: r136043
2008-05-27 11:03:55 -07:00
Michael Matz
a32990968e Fix c++/27975.
* c.opt (Wenum-compare): New warning option.
        * doc/invoke.texi (Warning Options): Document -Wenum-compare.

cp/
        * call.c (build_new_op): Make warning conditional on OPT_Wenum_compare.

testsuite/
        * g++.dg/warn/Wenum-compare.C: New testcase.
        * g++.dg/warn/Wenum-compare-no.C: Ditto.

From-SVN: r136035
2008-05-27 14:59:53 +00:00
Michael Matz
bd42a56bb4 re PR middle-end/36326 (gimplification of aggregate copies introduces extra aggregate copy)
PR middle-end/36326
* tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
non-BLKmode types.
* tree-tailcall.c (find_tail_calls): Don't mark calls storing
into memory as tail calls.

From-SVN: r136033
2008-05-27 14:28:02 +00:00
Richard Guenther
a46fc136fc re PR tree-optimization/36339 (not call clobbering variable for non common offset)
2008-05-27  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/36339
	* tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
	pointers cause all addressable variables to be call clobbered.

	* gcc.c-torture/execute/pr36339.c: New testcase.
	* gcc.dg/tree-ssa/loadpre8.c: XFAIL.

From-SVN: r136030
2008-05-27 13:21:07 +00:00
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