OSDN Git Service

2010-06-14 Gary Dismukes <dismukes@adacore.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Jun 2010 09:17:14 +0000 (09:17 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Jun 2010 09:17:14 +0000 (09:17 +0000)
* sem_ch4.adb: Fix typo.

2010-06-14  Vasiliy Fofanov  <fofanov@adacore.com>

* s-oscons-tmplt.c (IOV_MAX): redefine on Tru64 and VMS since the
vector IO doesn't work at default value properly.

2010-06-14  Doug Rupp  <rupp@adacore.com>

* s-stoele.adb: Remove unnecessary qualification of To_Address for VMS.

2010-06-14  Vincent Celier  <celier@adacore.com>

* gnatcmd.adb (Check_Files): Do not invoke the tool with all the
sources of the project if a switch -files= is used.

2010-06-14  Thomas Quinot  <quinot@adacore.com>

* exp_attr.adb: Minor reformatting

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160714 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ada/ChangeLog
gcc/ada/exp_attr.adb
gcc/ada/gnatcmd.adb
gcc/ada/s-oscons-tmplt.c
gcc/ada/s-stoele.adb
gcc/ada/sem_ch4.adb

index 6f7d87c..926c7af 100644 (file)
@@ -1,5 +1,26 @@
 2010-06-14  Gary Dismukes  <dismukes@adacore.com>
 
+       * sem_ch4.adb: Fix typo.
+
+2010-06-14  Vasiliy Fofanov  <fofanov@adacore.com>
+
+       * s-oscons-tmplt.c (IOV_MAX): redefine on Tru64 and VMS since the
+       vector IO doesn't work at default value properly.
+
+2010-06-14  Doug Rupp  <rupp@adacore.com>
+
+       * s-stoele.adb: Remove unnecessary qualification of To_Address for VMS.
+
+2010-06-14  Vincent Celier  <celier@adacore.com>
+
+       * gnatcmd.adb (Check_Files): Do not invoke the tool with all the
+       sources of the project if a switch -files= is used.
+
+2010-06-14  Thomas Quinot  <quinot@adacore.com>
+
+       * exp_attr.adb: Minor reformatting
+2010-06-14  Gary Dismukes  <dismukes@adacore.com>
+
        * gnat_ugn.texi: Minor typo fixes and wording changes
 
 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
index 48bd566..7f7e1d1 100644 (file)
@@ -3586,8 +3586,7 @@ package body Exp_Attr is
                             Attribute_Name => Name_First,
                             Prefix => New_Occurrence_Of (Ptyp, Loc))))),
 
-                Right_Opnd =>
-                  Make_Integer_Literal (Loc, 1)));
+                Right_Opnd => Make_Integer_Literal (Loc, 1)));
 
             Analyze_And_Resolve (N, Typ);
 
@@ -3707,7 +3706,7 @@ package body Exp_Attr is
 
                   Rewrite (N,
                     Make_Assignment_Statement (Loc,
-                      Name => Lhs,
+                      Name       => Lhs,
                       Expression => Rhs));
 
                   Analyze (N);
@@ -3785,9 +3784,7 @@ package body Exp_Attr is
       --  the context of a _Postcondition function with a _Result parameter.
 
       when Attribute_Result =>
-         Rewrite (N,
-           Make_Identifier (Loc,
-            Chars => Name_uResult));
+         Rewrite (N, Make_Identifier (Loc, Chars => Name_uResult));
          Analyze_And_Resolve (N, Typ);
 
       -----------
index 6ab6821..c462806 100644 (file)
@@ -209,9 +209,9 @@ procedure GNATCmd is
 
    procedure Check_Files;
    --  For GNAT LIST, GNAT PRETTY, GNAT METRIC, and GNAT STACK, check if a
-   --  project file is specified, without any file arguments. If it is the
-   --  case, invoke the GNAT tool with the proper list of files, derived from
-   --  the sources of the project.
+   --  project file is specified, without any file arguments and without a
+   --  switch -files=. If it is the case, invoke the GNAT tool with the proper
+   --  list of files, derived from the sources of the project.
 
    function Check_Project
      (Project      : Project_Id;
@@ -314,10 +314,17 @@ procedure GNATCmd is
       Success     : Boolean;
 
    begin
-      --  Check if there is at least one argument that is not a switch
+      --  Check if there is at least one argument that is not a switch or if
+      --  there is a -files= switch.
 
       for Index in 1 .. Last_Switches.Last loop
-         if Last_Switches.Table (Index) (1) /= '-' then
+         if Last_Switches.Table (Index).all'Length > 7 and then
+           Last_Switches.Table (Index) (1 .. 7) = "-files="
+         then
+            Add_Sources := False;
+            exit;
+
+         elsif Last_Switches.Table (Index) (1) /= '-' then
             if Index = 1
               or else
                 (The_Command = Check
@@ -346,8 +353,8 @@ procedure GNATCmd is
          end if;
       end loop;
 
-      --  If all arguments were switches, add the path names of all the sources
-      --  of the main project.
+      --  If all arguments are switchesand there is no switch -files=, add the
+      --  path names of all the sources of the main project.
 
       if Add_Sources then
 
index 1e8bd52..a7ca809 100644 (file)
@@ -98,6 +98,22 @@ pragma Style_Checks ("M32766");
 #include <limits.h>
 #include <fcntl.h>
 
+#if defined (__alpha__) && defined (__osf__)
+/** Tru64 is unable to do vector IO operations with default value of IOV_MAX,
+ ** so its value is redefined to a small one which is known to work properly.
+ **/
+#undef IOV_MAX
+#define IOV_MAX 16
+#endif
+
+#if defined (__VMS)
+/** VMS is unable to do vector IO operations with default value of IOV_MAX,
+ ** so its value is redefined to a small one which is known to work properly.
+ **/
+#undef IOV_MAX
+#define IOV_MAX 16
+#endif
+
 #if ! (defined (__vxworks) || defined (__VMS) || defined (__MINGW32__) || \
        defined (__nucleus__))
 # define HAVE_TERMIOS
index dfd7810..776aacb 100644 (file)
@@ -39,7 +39,7 @@ package body System.Storage_Elements is
 
    --  Conversion to/from address
 
-   --  Note full qualification below of To_Address to avoid ambiguities on VMS.
+   --  Note qualification below of To_Address to avoid ambiguities on VMS.
 
    function To_Address is
      new Ada.Unchecked_Conversion (Storage_Offset, Address);
@@ -65,25 +65,25 @@ package body System.Storage_Elements is
 
    function "+" (Left : Address; Right : Storage_Offset) return Address is
    begin
-      return System.Storage_Elements.To_Address
+      return Storage_Elements.To_Address
         (To_Integer (Left) + To_Integer (To_Address (Right)));
    end "+";
 
    function "+" (Left : Storage_Offset; Right : Address) return Address is
    begin
-      return System.Storage_Elements.To_Address
+      return Storage_Elements.To_Address
         (To_Integer (To_Address (Left)) + To_Integer (Right));
    end "+";
 
    function "-" (Left : Address; Right : Storage_Offset) return Address is
    begin
-      return System.Storage_Elements.To_Address
+      return Storage_Elements.To_Address
         (To_Integer (Left) - To_Integer (To_Address (Right)));
    end "-";
 
    function "-" (Left, Right : Address) return Storage_Offset is
    begin
-      return To_Offset (System.Storage_Elements.To_Address
+      return To_Offset (Storage_Elements.To_Address
                          (To_Integer (Left) - To_Integer (Right)));
    end "-";
 
index 3010183..126b003 100644 (file)
@@ -6094,7 +6094,7 @@ package body Sem_Ch4 is
          First_Actual : Node_Id;
 
       begin
-         --  Place the name of the operation, with its innterpretations,
+         --  Place the name of the operation, with its interpretations,
          --  on the rewritten call.
 
          Set_Name (Call_Node, Subprog);