Commit graph

88944 commits

Author SHA1 Message Date
Jose Ruiz
37efd88e58 init.c (__gnat_install_handler for linux): If we are building the Xenomai run time then we need to do two additional things...
2008-08-05  Jose Ruiz  <ruiz@adacore.com>

	* init.c (__gnat_install_handler for linux): If we are building the
	Xenomai run time then we need to do two additional things: avoid
	memory swapping and transform the Linux environment task into a native
	Xenomai task.

	* gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
	time): Use interface to Xenomai native skin and avoid linux-specific
	way of setting CPU affinity.
	(EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.

From-SVN: r138684
2008-08-05 11:27:49 +02:00
Arnaud Charlet
0df218a9a7 make.adb (Switches_Of): Check for Switches (others), before checking for Default_Switches ("Ada").
2008-08-05  Vincent Celier  <celier@adacore.com>

	* make.adb (Switches_Of): Check for Switches (others), before checking
	for Default_Switches ("Ada").
	(Gnatmake): Use Builder'Switches (others) in preference to
	Builder'Default_Switches ("Ada") if there are several mains.

	* prj-attr-pm.adb:
	(Add_Attribute): Add component Others_Allowed in Attribute_Record
	aggregate.

	* prj-attr.adb:
	Add markers to indicates that attributes Switches allow others as index
	(Others_Allowed_For): New Boolean function, returning True for
	attributes with the mark.
	(Initialize): Recognize optional letter 'O' as the marker for
	associative array attributes where others is allowed as the index.

	* prj-attr.ads:
	(Others_Allowed_For): New Boolean function
	(Attribute_Record): New Boolean component Others_Allowed
	
	* prj-dect.adb:
	(Parse_Attribute_Declaration): For associative array attribute where
	others is allowed as the index, allow others as an index.

	* prj-nmsc.adb:
	(Process_Binder): Skip associative array attributes with index others
	(Process_Compiler): Ditto

	* prj-util.adb:
	(Value_Of (Index, In_Array)): Make no attempt to put in lower case when
	index is All_Other_Names.

	* prj.ads:
	(All_Other_Names): New constant

From-SVN: r138683
2008-08-05 11:14:48 +02:00
Vasiliy Fofanov
9cc014f915 gen-oscons.c: Adapt for VMS where termios.h is not available.
2008-08-05  Vasiliy Fofanov  <fofanov@adacore.com>

	* gen-oscons.c: Adapt for VMS where termios.h is not available.

From-SVN: r138682
2008-08-05 11:14:13 +02:00
Vincent Celier
215aeb6755 2008-08-05 Vincent Celier <celier@adacore.com>
* prj-proc.adb:
	(Process_Declarative_Items): Skip associative array attribute when index
	is reserved word "others".

From-SVN: r138681
2008-08-05 11:14:03 +02:00
Vincent Celier
646acd10c8 mlib.adb: Update comments.
2008-08-05  Vincent Celier  <celier@adacore.com>

	* mlib.adb: Update comments.

From-SVN: r138680
2008-08-05 11:13:53 +02:00
Thomas Quinot
c7d920ad90 gen-soccon.c: Rename to gen-oscons.c
2008-08-05  Thomas Quinot  <quinot@adacore.com>

	* gen-soccon.c: Rename to gen-oscons.c

	* gen-oscons.c: New file. Now generate System.OS_Constants instead of
	GNAT.Sockets.Constants.
	Add new constants for GNAT.Serial_Communications and System.File_IO.

From-SVN: r138679
2008-08-05 11:05:08 +02:00
Thomas Quinot
faa7615288 a-rttiev.adb: Minor reformatting (comments)
2008-08-05  Thomas Quinot  <quinot@adacore.com>

	* a-rttiev.adb: Minor reformatting (comments)

From-SVN: r138678
2008-08-05 11:04:18 +02:00
Arnaud Charlet
8b79ad42d8 adaint.c, [...]: Fix the Set_Read_Only Win32 implementation.
2008-08-05  Pascal Obry  <obry@adacore.com>

	* adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
	Set_Read_Only Win32 implementation.

From-SVN: r138676
2008-08-05 10:41:30 +02:00
Javier Miranda
38b181d6c0 sem_util.adb (Collect_Interfaces_Info): Minor reformating.
2008-08-05  Javier Miranda  <miranda@adacore.com>

	* sem_util.adb (Collect_Interfaces_Info): Minor reformating.
	* exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
	implementation of this routine has been simplified.

From-SVN: r138675
2008-08-05 10:41:07 +02:00
Thomas Quinot
99e81db6df exp_strm.adb: Minor reformatting (comments)
2008-08-05  Thomas Quinot  <quinot@adacore.com>

	* exp_strm.adb: Minor reformatting (comments)

	* sem_ch12.adb: Minor reformatting.

From-SVN: r138674
2008-08-05 10:34:58 +02:00
Arnaud Charlet
3894140f5b * gnat.dg/access_discr2.adb: New test.
From-SVN: r138673
2008-08-05 10:21:05 +02:00
Arnaud Charlet
dce86910a3 sem_res.adb (Resolve_Call): If this is a call to the predefined Abort_Task...
2008-08-05  Ed Schonberg  <schonberg@adacore.com>

	* sem_res.adb (Resolve_Call): If this is a call to the predefined
	Abort_Task, warn if the call appears within a protected operation.

From-SVN: r138672
2008-08-05 10:17:24 +02:00
Ed Schonberg
864f786316 exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access discriminants...
2008-08-05  Ed Schonberg  <schonberg@adacore.com>

	* exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
	discriminants, indicate that the corresponding object declaration has
	no initialization, to prevent spurious warnings when the access type is
	null-excluding.

From-SVN: r138671
2008-08-05 10:17:02 +02:00
Jerome Lambourg
c1db334ed5 g-comlin.adb (Sort_Sections, [...]): New/Modified internal methods needed to handle switch sections when...
2008-08-05  Jerome Lambourg  <lambourg@adacore.com>

	* g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
	methods needed to handle switch sections when building a command line.
	(Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
	Current_Section): New public methods or methods modified to handle
	building command lines with sections.
	(Set_Command_Line): Take into account sections when analysing a switch
	string.
	(Start): Sort the switches by sections before iterating the command line
	elements.
	
	* g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
	Is_New_Section, Current_Section): New methods or methods modified to
	handle building command lines with sections.

From-SVN: r138670
2008-08-05 10:16:44 +02:00
Thomas Quinot
2f0c4fcf42 tbuild.ads (New_External_Name): Update spec to reflect relaxed restriction on Prefix.
2008-08-05  Thomas Quinot  <quinot@adacore.com>

	* tbuild.ads (New_External_Name): Update spec to reflect relaxed
	restriction on Prefix.

From-SVN: r138669
2008-08-05 10:16:33 +02:00
Robert Dewar
6f2b033bd5 checks.adb: Minor reformatting
2008-08-05  Robert Dewar  <dewar@adacore.com>

	* checks.adb: Minor reformatting

From-SVN: r138668
2008-08-05 10:16:22 +02:00
Robert Dewar
922987827d sem_ch3.adb: Minor reformatting
2008-08-05  Robert Dewar  <dewar@adacore.com>

	* sem_ch3.adb: Minor reformatting

From-SVN: r138667
2008-08-05 10:16:11 +02:00
Tom Tromey
5b6728d435 re PR libgcj/31890 (Java Namespace error - javaprims.h out of sync)
PR libgcj/31890:
	* gcj/javaprims.h: Regenerate class list.

From-SVN: r138664
2008-08-05 01:28:26 +00:00
GCC Administrator
fdd01a1905 Daily bump.
From-SVN: r138661
2008-08-05 00:16:33 +00:00
Jason Merrill
a53b09faa5 re PR c++/36963 (Bogus narrowing conversion error in initializer list with -std=c++0x)
PR c++/36963
        * typeck2.c (check_narrowing): Allow narrowing conversion
        from an explicit floating-point constant.

From-SVN: r138652
2008-08-04 15:53:57 -04:00
Arnaud Charlet
52fb73c2bf 2008-08-04 Robert Dewar <dewar@adacore.com>
* exp_ch5.adb:
	(Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
	at point of return.

From-SVN: r138651
2008-08-04 20:51:10 +02:00
Ed Schonberg
cd1c668b50 2008-08-04 Ed Schonberg <schonberg@adacore.com>
* sem_ch3.adb:
	(Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
	anonymous access to protected subprogram that is the return type of the
	specification of a subprogram body.

	* sem_ch6.adb:
	(Analyze_Subprogram_Body): if the return type is an anonymous access to
	subprogram, freeze it now to prevent access anomalies in the back-end.

	* exp_ch9.adb: Minor code cleanup.
	Make sure that new declarations are inserted into the tree before
	analysis (from code reading).

From-SVN: r138650
2008-08-04 20:50:45 +02:00
Robert Dewar
94eefd2ef7 exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
2008-08-04  Robert Dewar  <dewar@adacore.com>

	* exp_ch4.adb (Expand_N_In): Suppress range warnings in instances

From-SVN: r138649
2008-08-04 20:50:33 +02:00
Jason Merrill
9b26c96e33 re PR c++/37006 (explicitly deleted inline function gives warning "used but never defined")
PR c++/37006
        * pt.c (tsubst_decl): Leave DECL_INITIAL set on deleted
        instantiations.

From-SVN: r138648
2008-08-04 14:39:16 -04:00
Richard Guenther
7eeef08ed8 tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add the candidate with the stripped base if...
2008-08-04  Richard Guenther  <rguenther@suse.de>

	* tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
	the candidate with the stripped base if that base is different
	from the original base even for offset zero.

From-SVN: r138647
2008-08-04 18:35:20 +00:00
Richard Guenther
8f45dcf8be re PR middle-end/36691 (wrong value left in induction variable)
2008-08-04  Richard Guenther  <rguenther@suse.de>

	PR middle-end/36691
	* tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
	check for no_overflow.

	* gcc.c-torture/execute/pr36691.c: New testcase.

From-SVN: r138645
2008-08-04 18:29:08 +00:00
Victor Kaplansky
25385c279d vect-complex-5.c: New test.
2008-08-04  Victor Kaplansky  <victork@il.ibm.com>

        * gcc.dg/vect/vect-complex-5.c: New test.

From-SVN: r138643
2008-08-04 17:25:13 +00:00
Richard Guenther
26c86972af tree-vect-transform.c (vectorizable_call): Fix tuplification.
2008-08-04  Richard Guenther  <rguenther@suse.de>

	* tree-vect-transform.c (vectorizable_call): Fix tuplification.

From-SVN: r138642
2008-08-04 17:22:17 +00:00
Paul Brook
795dc4fc90 arm.c (thumb_core_reg_alloc_order): New.
2008-08-04  Paul Brook  <paul@codesourcery.com>

	gcc/
	* cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
	(arm_order_regs_for_local_alloc): New function.
	* config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
	prototype.
	* config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.

From-SVN: r138640
2008-08-04 16:27:17 +00:00
Arnaud Charlet
367a9e66e0 exp_ch4.adb: Minor reformatting
2008-08-04  Robert Dewar  <dewar@adacore.com>

	* exp_ch4.adb: Minor reformatting

From-SVN: r138638
2008-08-04 17:34:39 +02:00
Javier Miranda
f2131422e4 sem_prag.adb (Process_Convention): Add missing support for N_Private_Extension_Declaration nodes.
2008-08-04  Javier Miranda  <miranda@adacore.com>

	* sem_prag.adb (Process_Convention): Add missing support for
	 N_Private_Extension_Declaration nodes.

From-SVN: r138637
2008-08-04 17:34:13 +02:00
Vasiliy Fofanov
cae8abfff1 g-soccon-mingw.ads: Fix value for MSG_WAITALL
2008-08-04  Vasiliy Fofanov  <fofanov@adacore.com>

	* g-soccon-mingw.ads: Fix value for MSG_WAITALL

From-SVN: r138636
2008-08-04 17:34:04 +02:00
Thomas Quinot
1baa4d2d79 sem_type.adb, [...]: Minor reformatting
2008-08-04  Thomas Quinot  <quinot@adacore.com>

	* sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting

From-SVN: r138635
2008-08-04 17:33:55 +02:00
Simon Baldwin
771ce78ea0 re PR c++/36999 (Erroneous "declaration 'class ...' does not declare anything" warnings possible)
PR c++/36999
        * parser.c (cp_parser_elaborated_type_specifier): Warn only when
        the declaration's id is followed by a semicolon.

	* g++.dg/warn/pr36999.C: New.

From-SVN: r138633
2008-08-04 15:09:56 +00:00
H.J. Lu
6fc3c2b2c4 re PR c++/37012 (numerous stackalign related testsuite failures on i686-apple-darwin9)
2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/37012
	* config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
	instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
	(ix86_expand_epilogue): Likewise.

From-SVN: r138631
2008-08-04 07:56:12 -07:00
Arnaud Charlet
a07c35938a adaint.c: Refine support for Windows file attributes.
2008-08-04  Pascal Obry  <obry@adacore.com>

	* adaint.c: Refine support for Windows file attributes.

From-SVN: r138620
2008-08-04 14:52:38 +02:00
Thomas Quinot
56a7a3ab67 sem_ch4.adb: Minor reformatting.
2008-08-04  Thomas Quinot  <quinot@adacore.com>

	* sem_ch4.adb: Minor reformatting.

From-SVN: r138619
2008-08-04 14:51:41 +02:00
Thomas Quinot
61549759f1 exp_ch6.adb: Minor comment fix.
2008-08-04  Thomas Quinot  <quinot@adacore.com>

	* exp_ch6.adb: Minor comment fix.

From-SVN: r138618
2008-08-04 14:51:30 +02:00
Robert Dewar
b6e209b5f8 2008-08-04 Robert Dewar <dewar@adacore.com>
* freeze.adb:
	(Freeze_Entity): Only check No_Default_Initialization restriction for
	constructs that come from source

From-SVN: r138617
2008-08-04 14:51:19 +02:00
Javier Miranda
bb98fe758e sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch added in previous patch to handle access to subprograms.
2008-08-04  Javier Miranda  <miranda@adacore.com>

	* sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
	added in previous patch to handle access to subprograms.

From-SVN: r138616
2008-08-04 14:51:10 +02:00
Robert Dewar
9fa33291c7 2008-08-04 Robert Dewar <dewar@adacore.com>
* sem_res.adb:
	(Valid_Conversion): Catch case of designated types having different
	sizes, even though they statically match.

From-SVN: r138615
2008-08-04 14:51:00 +02:00
Pascal Obry
31e845120a adaint.h: Add missing prototype.
2008-08-04  Pascal Obry  <obry@adacore.com>

	* adaint.h: Add missing prototype.

From-SVN: r138614
2008-08-04 14:50:41 +02:00
Arnaud Charlet
d559d5c686 adaint.c, [...]: Use Windows ACL to deal with file attributes.
2008-08-04  Pascal Obry  <obry@adacore.com>

	* adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
	file attributes.

From-SVN: r138613
2008-08-04 14:35:08 +02:00
Robert Dewar
a0ac393230 sem_ch13.ads: Minor comment update
2008-08-04  Robert Dewar  <dewar@adacore.com>

	* sem_ch13.ads: Minor comment update

	* sem_res.adb: (Large_Storage_Type): Improve previous change.

From-SVN: r138612
2008-08-04 14:34:16 +02:00
H.J. Lu
5b2314f660 i386.c (ix86_compute_frame_layout): Fix a typo in comments.
2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
	in comments.

From-SVN: r138611
2008-08-04 05:29:08 -07:00
Javier Miranda
b1c11e0e0a sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support for N_Formal_Object_Declaration nodes.
2008-08-04  Javier Miranda  <miranda@adacore.com>

	* sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
	for N_Formal_Object_Declaration nodes. Adding kludge required by
	First_Formal to provide its functionality with access to functions.
	(Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
	for anonymous access types returned by functions.

	* sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
	conversion of null-excluding access types (required only once to force
	the generation of the required runtime check).

	* sem_type.adb (Covers): minor reformating

	* checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
	with internally generated nodes. Avoid generating the error inside init
	procs.

	* sem_res.adb (Resolve_Membership_Test): Minor reformating.
	(Resolve_Null): Generate the null-excluding check in case of assignment
	to a null-excluding object.
	(Valid_Conversion): Add missing support for anonymous access to
	subprograms.

	* sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
	anonymous access types whose designated type is an itype. This case
	occurs with anonymous access to protected subprograms types.
	(Analyze_Return_Type):  Add missing support for anonymous access to
	protected subprogram.

	* sem_eval.adb (Subtypes_Statically_Match): In case of access to
	subprograms addition of missing check on matching convention. Required
	to properly handle access to protected subprogram types.

	* exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
	null excluding access types.

From-SVN: r138610
2008-08-04 14:14:25 +02:00
Arnaud Charlet
10fb8ecd51 * gnat.dg/test_ai254.adb: New test.
From-SVN: r138609
2008-08-04 14:13:10 +02:00
Paolo Carlini
d27653b8a3 postypes.h: Reinstate inclusion of <stdint.h>; also define the __STDC_* macros.
2008-08-04  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/postypes.h: Reinstate inclusion of <stdint.h>;
	also define the __STDC_* macros.
	(streamoff): Adjust.

	* include/tr1_impl/cstdint: Check that the __STDC_* macros are
	not defined before defining.

From-SVN: r138608
2008-08-04 12:05:41 +00:00
Arnaud Charlet
382dbcb228 * gnat.dg/bip_aggregate_bug.adb: New test.
From-SVN: r138606
2008-08-04 12:28:30 +02:00
Arnaud Charlet
b282ab3735 g-soccon-mingw-64.ads, [...]: New files.
2008-08-04  Vasiliy Fofanov  <fofanov@adacore.com>

	* g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.

	* gcc-interface/Makefile.in: Use 64bit-specific system files when
	compiling for 64bit windows.

From-SVN: r138605
2008-08-04 12:25:26 +02:00