Commit Graph

89071 Commits

Author SHA1 Message Date
Arnaud Charlet 49331b42a8 ug_words: Add entries for -gnatw.b/-gnatw.B
2008-08-05  Robert Dewar  <dewar@adacore.com>

	* ug_words: Add entries for -gnatw.b/-gnatw.B

	* vms_data.ads: Add entries for -gnatw.b/-gnatw.B

From-SVN: r138717
2008-08-05 16:10:54 +02:00
Sergey Rybin c1bacb90ea gnat_ugn.texi: Changing the description of the gnatcheck metrics rule according to the change...
2008-08-05  Sergey Rybin  <rybin@adacore.com>

	* gnat_ugn.texi: Changing the description of the gnatcheck metrics
	rule according to the change in the rule option.
	Add documentation for -gnatw.b/-gnatw.B

From-SVN: r138716
2008-08-05 16:10:38 +02:00
Ulrich Weigand e3834d3862 spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
* config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
	Reword some comments throughout the file.

	(MFC_MIN_DMA_LIST_ELEMENTS): New define.
	(MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
	(MFC_MIN_DMA_LIST_SIZE): Redefine in terms of MFC_MIN_DMA_LIST_ELEMENTS.
	(MFC_MAX_DMA_LIST_SIZE): Redefine in terms of MFC_MAX_DMA_LIST_ELEMENTS.

	(MFC_START_ENABLE): Remove PPU-only define.
	(MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
	(MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.

	(MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
	(MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
	(MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
	(MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
	(MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
	(MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
	(MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.

	(MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
	(MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
	(mfc_sdcrt, mfc_sdcrtst): Likewise.
	(mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.

	(spu_read_machine_status): Fix typo.

From-SVN: r138714
2008-08-05 14:04:56 +00:00
Ulrich Weigand 9e071d06df spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized SUBREG of multi-word hard register.
* config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
	SUBREG of multi-word hard register.
	* config/spu/spu.c (valid_subreg): Likewise.
	(adjust_operand): Handle SUBREGs of multi-word hard registers.

From-SVN: r138711
2008-08-05 13:53:20 +00:00
Vincent Celier 21f560ba8e a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put (File).
2008-08-05  Vincent Celier  <celier@adacore.com>

	* a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
	(File).
	
	* a-ztdeio.adb: Ditto.

From-SVN: r138710
2008-08-05 15:53:04 +02:00
Arnaud Charlet 43540ec65f adaint.c, [...]: Add support for the readable attribute.
2008-08-05  Pascal Obry  <obry@adacore.com>

	* adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
	readable attribute.

From-SVN: r138709
2008-08-05 15:42:47 +02:00
Vincent Celier 486fd7f5d7 2008-08-05 Vincent Celier <celier@adacore.com>
* s-wchwts.adb:
	(Wide_String_To_String): Returns a String with the same 'First as its
	parameter S.
	(Wide_Wide_String_To_String): Ditto
	
	* s-wchwts.ads:
	(Wide_String_To_String): Document that the lowest index of the returned
	String is equal to S'First.

From-SVN: r138708
2008-08-05 15:42:08 +02:00
Thomas Quinot c336d2c7ff Makefile.in (gnatlib*): Now depend on oscons target.
* Makefile.in (gnatlib*): Now depend on oscons target.
	(oscons): New target.

From-SVN: r138706
2008-08-05 15:29:05 +02:00
Thomas Quinot 2d4d7e29a3 xoscons.adb, [...]: New files.
2008-08-05  Thomas Quinot  <quinot@adacore.com>

	* xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.

	* gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
	s-oscons.ads

From-SVN: r138705
2008-08-05 15:26:24 +02:00
Arnaud Charlet 4ae23b62c6 opt.ads (Warn_On_Biased_Representation): New flag
2008-08-05  Robert Dewar  <dewar@adacore.com>

	* opt.ads (Warn_On_Biased_Representation): New flag
	
	* sem_ch13.adb:
	(Analyze_Attribute_Definition_Clause): Issue warning when biased
	representation is required.
	(Minimum_Size): Don't allow biasing if enum rep clause case
	
	* sem_warn.adb:
	(Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
	(Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
	
	* usage.adb: Add lines for -gnatw.b/B switches

From-SVN: r138704
2008-08-05 15:24:27 +02:00
Pascal Obry e5fe425118 adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
2008-08-05  Pascal Obry  <obry@adacore.com>

	* adaint.c: In UNIX cases do not call __gnat_stat but stat directly.

From-SVN: r138703
2008-08-05 15:24:02 +02:00
Thomas Quinot 0c78ce5ae0 socket.c: Minor reformatting.
2008-08-05  Thomas Quinot  <quinot@adacore.com>

	* socket.c: Minor reformatting.

From-SVN: r138702
2008-08-05 15:23:53 +02:00
Pascal Obry 5efa4d6891 a-coinve.adb: Reorder the code to avoid uninitialized warning.
2008-08-05  Pascal Obry  <obry@adacore.com>

	* a-coinve.adb: Reorder the code to avoid uninitialized warning.

From-SVN: r138701
2008-08-05 15:23:44 +02:00
Richard Guenther 78d0a2ec2b re PR middle-end/37026 (GCC ICE in tree_to_gimple_tuple)
2008-08-05  Richard Guenther  <rguenther@suse.de>

	PR middle-end/37026
	* gcc.c-torture/compile/pr37026.c: New testcase.

From-SVN: r138700
2008-08-05 11:42:33 +00:00
Arnaud Charlet ba3fa65037 sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex visibility check on the component type if the simple test fails.
2008-08-05  Ed Schonberg  <schonberg@adacore.com>

	* sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
	visibility check on the component type if the simple test fails.

From-SVN: r138697
2008-08-05 11:40:19 +02:00
Robert Dewar 628a4180a3 prj-nmsc.adb: Minor reformatting
2008-08-05  Robert Dewar  <dewar@adacore.com>

	* prj-nmsc.adb: Minor reformatting

From-SVN: r138696
2008-08-05 11:39:23 +02:00
Robert Dewar 45a9255f9e sem_ch3.adb: Minor reformatting
2008-08-05  Robert Dewar  <dewar@adacore.com>

	* sem_ch3.adb: Minor reformatting

From-SVN: r138695
2008-08-05 11:39:05 +02:00
Arnaud Charlet a96ced8e6f * gnat.dg/not_null.adb: New test.
From-SVN: r138694
2008-08-05 11:33:21 +02:00
Arnaud Charlet c775e4a16c sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in unresolved initial value of "null"...
2008-08-05  Bob Duff  <duff@adacore.com>

	* sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
	unresolved initial value of "null", because it causes implicitly
	generated "=" operators to be ambiguous, and because this type should
	not be passed to gigi.

From-SVN: r138693
2008-08-05 11:30:53 +02:00
Robert Dewar 779dca2f08 prj.ads: Minor reformatting
2008-08-05  Robert Dewar  <dewar@adacore.com>

	* prj.ads: Minor reformatting

From-SVN: r138692
2008-08-05 11:29:28 +02:00
Robert Dewar 4cac93f0ae s-fileio.adb: Minor code reorganization Minor reformatting
2008-08-05  Robert Dewar  <dewar@adacore.com>

	* s-fileio.adb: Minor code reorganization
	Minor reformatting

From-SVN: r138691
2008-08-05 11:29:20 +02:00
Robert Dewar d61f428e8a s-os_lib.adb: Minor reformatting
2008-08-05  Robert Dewar  <dewar@adacore.com>

	* s-os_lib.adb: Minor reformatting

From-SVN: r138690
2008-08-05 11:29:12 +02:00
Robert Dewar e3cea23883 prj-attr.ads: Minor reformatting
2008-08-05  Robert Dewar  <dewar@adacore.com>

	* prj-attr.ads: Minor reformatting

From-SVN: r138689
2008-08-05 11:29:03 +02:00
Robert Dewar 9300855f41 mlib.adb: Minor code reorganization Minor reformatting
2008-08-05  Robert Dewar  <dewar@adacore.com>

	* mlib.adb: Minor code reorganization
	Minor reformatting

From-SVN: r138688
2008-08-05 11:28:55 +02:00
Thomas Quinot 584ec6e003 g-sercom.adb, [...] (Data_Bits): Change literals B7 and B8 to CS7 and CS8.
2008-08-05  Thomas Quinot  <quinot@adacore.com>

	* g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
	g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
	CS8.

From-SVN: r138687
2008-08-05 11:28:44 +02:00
Robert Dewar 33395f44ba make.adb: Minor reformatting
2008-08-05  Robert Dewar  <dewar@adacore.com>

	* make.adb: Minor reformatting

From-SVN: r138686
2008-08-05 11:28:12 +02:00
Bob Duff 05231b21e0 checks.ads: Minor comment fix
2008-08-05  Bob Duff  <duff@adacore.com>

	* checks.ads: Minor comment fix

From-SVN: r138685
2008-08-05 11:28:03 +02:00
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