]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[multiple changes]
authorArnaud Charlet <charlet@gcc.gnu.org>
Fri, 10 Sep 2010 14:48:41 +0000 (16:48 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Fri, 10 Sep 2010 14:48:41 +0000 (16:48 +0200)
2010-09-10  Vincent Celier  <celier@adacore.com>

* sem_aggr.adb, exp_prag.adb, sem_ch3.adb, exp_attr.adb,
sem_res.adb, sem_attr.adb, sem_elab.adb, sem_ch4.adb, exp_disp.adb,
exp_aggr.adb, exp_dist.adb: Change all mentions of "at run-time" to
"at run time" in comments and error/warning messages.

2010-09-10  Ed Schonberg  <schonberg@adacore.com>

* exp_cg.adb: Handle properly bodies without specs.

2010-09-10  Emmanuel Briot  <briot@adacore.com>

* prj-nmsc.adb (Find_Source_Dirs): When a source directory is not
present, and the user requested to either ignore this or display a
warning (as opposed to an error), we still need to register the
directory.

From-SVN: r164184

14 files changed:
gcc/ada/ChangeLog
gcc/ada/exp_aggr.adb
gcc/ada/exp_attr.adb
gcc/ada/exp_cg.adb
gcc/ada/exp_disp.adb
gcc/ada/exp_dist.adb
gcc/ada/exp_prag.adb
gcc/ada/prj-nmsc.adb
gcc/ada/sem_aggr.adb
gcc/ada/sem_attr.adb
gcc/ada/sem_ch3.adb
gcc/ada/sem_ch4.adb
gcc/ada/sem_elab.adb
gcc/ada/sem_res.adb

index b60b84ada205618a6ecfac7f537bc3b00523607a..76137955e7eebf07ee04fcb2fe83967ccd413b10 100644 (file)
@@ -1,3 +1,21 @@
+2010-09-10  Vincent Celier  <celier@adacore.com>
+
+       * sem_aggr.adb, exp_prag.adb, sem_ch3.adb, exp_attr.adb,
+       sem_res.adb, sem_attr.adb, sem_elab.adb, sem_ch4.adb, exp_disp.adb,
+       exp_aggr.adb, exp_dist.adb: Change all mentions of "at run-time" to
+       "at run time" in comments and error/warning messages.
+
+2010-09-10  Ed Schonberg  <schonberg@adacore.com>
+
+       * exp_cg.adb: Handle properly bodies without specs.
+
+2010-09-10  Emmanuel Briot  <briot@adacore.com>
+
+       * prj-nmsc.adb (Find_Source_Dirs): When a source directory is not
+       present, and the user requested to either ignore this or display a
+       warning (as opposed to an error), we still need to register the
+       directory.
+
 2010-09-10  Robert Dewar  <dewar@adacore.com>
 
        * errout.adb: Remove tests of Parsing_Main_Subunit, since this test is
index e2bd125399f994e58d9bc928b9fd75394375ca16..27ad463a1b4e27635d8ac3add102d32e2d5f3779 100644 (file)
@@ -4946,7 +4946,7 @@ package body Exp_Aggr is
       end if;
 
       --  If the semantic analyzer has determined that aggregate N will raise
-      --  Constraint_Error at run-time, then the aggregate node has been
+      --  Constraint_Error at run time, then the aggregate node has been
       --  replaced with an N_Raise_Constraint_Error node and we should
       --  never get here.
 
index 1f6f7544df20b979133405d83248531805909c5f..b94944738b088c7f197250c5c90b9f957e320550 100644 (file)
@@ -5520,7 +5520,7 @@ package body Exp_Attr is
       --  that appear in GNAT's library, but will generate calls via rtsfind
       --  to library routines for user code.
       --  ??? For now, disable this code for JVM, since this generates a
-      --  VerifyError exception at run-time on e.g. c330001.
+      --  VerifyError exception at run time on e.g. c330001.
       --  This is disabled for AAMP, to avoid making dependences on files not
       --  supported in the AAMP library (such as s-fileio.adb).
 
index 31baa40168b8c3f8ce3f7505a87e87c903985aa9..84b1ee9427778a1538f3641604ec11f557867312 100644 (file)
@@ -432,7 +432,9 @@ package body Exp_CG is
       --  entity of the construct. For a subprogram, it is the entity of the
       --  spec, which carries a homonym counter when it is overloaded.
 
-      if Nkind (P) = N_Subprogram_Body then
+      if Nkind (P) = N_Subprogram_Body
+        and then not Acts_As_Spec (P)
+      then
          Get_External_Name (Corresponding_Spec (P), Has_Suffix => False);
 
       else
index 2517071ebe2d987a30e5a60141a096cc3c0b5e55..cdb9e880599705b229238eb26c6066aff5029abf 100644 (file)
@@ -3681,7 +3681,7 @@ package body Exp_Disp is
 
          --  Calculate the number of slots of the dispatch table. If the number
          --  of primitives of Typ is 0 we reserve a dummy single entry for its
-         --  DT because at run-time the pointer to this dummy entry will be
+         --  DT because at run time the pointer to this dummy entry will be
          --  used as the tag.
 
          if Num_Iface_Prims = 0 then
@@ -5095,7 +5095,7 @@ package body Exp_Disp is
                  Is_Library_Level_Tagged_Type (Typ));
 
                --  The table of interfaces is not constant; its slots are
-               --  filled at run-time by the IP routine using attribute
+               --  filled at run time by the IP routine using attribute
                --  'Position to know the location of the tag components
                --  (and this attribute cannot be safely used before the
                --  object is initialized).
index 5817d7ac73e80d85b9f95d3a4161f180943fcc82..29aab343f789b378a5c883a714904ac9c0d25277 100644 (file)
@@ -8769,7 +8769,7 @@ package body Exp_Dist is
                                  --  Struct_Counter should be reset before
                                  --  handling a variant part. Indeed only one
                                  --  of the case statement alternatives will be
-                                 --  executed at run-time, so the counter must
+                                 --  executed at run time, so the counter must
                                  --  start at 0 for every case statement.
 
                                  Struct_Counter := 0;
@@ -9655,7 +9655,7 @@ package body Exp_Dist is
                                  --  Struct_Counter should be reset before
                                  --  handling a variant part. Indeed only one
                                  --  of the case statement alternatives will be
-                                 --  executed at run-time, so the counter must
+                                 --  executed at run time, so the counter must
                                  --  start at 0 for every case statement.
 
                                  Struct_Counter := 0;
index 987cddc0bbdf604581d65737891ffaae809f5d98..d8b8ad0efa479379af2e8e3f0faa9ef4d0f18f06 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1992-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2010, Free Software Foundation, Inc.         --
 --                                                                          --
 -- GNAT is free software;  you can  redistribute it  and/or modify it under --
 -- terms of the  GNU General Public License as published  by the Free Soft- --
@@ -392,7 +392,7 @@ package body Exp_Prag is
          then
             return;
          elsif Nam = Name_Assertion then
-            Error_Msg_N ("?assertion will fail at run-time", N);
+            Error_Msg_N ("?assertion will fail at run time", N);
          else
             Error_Msg_N ("?check will fail at run time", N);
          end if;
index 620913c53e05f3d4268db518939a5e83c415aa20..4729ef618b5fb074f454174b75ae40caa0ce5ffd 100644 (file)
@@ -5208,6 +5208,7 @@ package body Prj.Nmsc is
                                Resolve_Links  =>
                                  Opt.Follow_Links_For_Dirs,
                                Case_Sensitive => True);
+               Has_Error : Boolean := False;
 
             begin
                if Root_Dir'Length = 0 then
@@ -5215,8 +5216,10 @@ package body Prj.Nmsc is
                   Error_Or_Warning
                     (Data.Flags, Data.Flags.Missing_Source_Files,
                      "{ is not a valid directory.", Location, Project);
+                  Has_Error := Data.Flags.Missing_Source_Files = Error;
+               end if;
 
-               else
+               if not Has_Error then
                   --  We have an existing directory, we register it and all of
                   --  its subdirectories.
 
@@ -5240,6 +5243,7 @@ package body Prj.Nmsc is
             declare
                Path_Name  : Path_Information;
                Dir_Exists : Boolean;
+               Has_Error  : Boolean := False;
 
             begin
                Locate_Directory
@@ -5255,8 +5259,10 @@ package body Prj.Nmsc is
                   Error_Or_Warning
                     (Data.Flags, Data.Flags.Missing_Source_Files,
                      "{ is not a valid directory", Location, Project);
+                  Has_Error := Data.Flags.Missing_Source_Files = Error;
+               end if;
 
-               else
+               if not Has_Error then
                   --  links have been resolved if necessary, and Path_Name
                   --  always ends with a directory separator
                   Add_To_Or_Remove_From_Source_Dirs
index d3a0935d0340c0ca3f3dd1ea11fd5a02032c4830..50af15c7f31346ca512af86a225bf5ac32b18616 100644 (file)
@@ -569,7 +569,7 @@ package body Sem_Aggr is
                   Set_Raises_Constraint_Error (N);
                   Error_Msg_N ("sub-aggregate low bound mismatch?", N);
                   Error_Msg_N
-                     ("\Constraint_Error will be raised at run-time?", N);
+                     ("\Constraint_Error will be raised at run time?", N);
                end if;
             end if;
 
@@ -583,7 +583,7 @@ package body Sem_Aggr is
                   Set_Raises_Constraint_Error (N);
                   Error_Msg_N ("sub-aggregate high bound mismatch?", N);
                   Error_Msg_N
-                     ("\Constraint_Error will be raised at run-time?", N);
+                     ("\Constraint_Error will be raised at run time?", N);
                end if;
             end if;
          end if;
@@ -1255,7 +1255,7 @@ package body Sem_Aggr is
          if OK_BH and then OK_AH and then Val_BH < Val_AH then
             Set_Raises_Constraint_Error (N);
             Error_Msg_N ("upper bound out of range?", AH);
-            Error_Msg_N ("\Constraint_Error will be raised at run-time?", AH);
+            Error_Msg_N ("\Constraint_Error will be raised at run time?", AH);
 
             --  You need to set AH to BH or else in the case of enumerations
             --  indices we will not be able to resolve the aggregate bounds.
@@ -1298,13 +1298,13 @@ package body Sem_Aggr is
          if OK_L and then Val_L > Val_AL then
             Set_Raises_Constraint_Error (N);
             Error_Msg_N ("lower bound of aggregate out of range?", N);
-            Error_Msg_N ("\Constraint_Error will be raised at run-time?", N);
+            Error_Msg_N ("\Constraint_Error will be raised at run time?", N);
          end if;
 
          if OK_H and then Val_H < Val_AH then
             Set_Raises_Constraint_Error (N);
             Error_Msg_N ("upper bound of aggregate out of range?", N);
-            Error_Msg_N ("\Constraint_Error will be raised at run-time?", N);
+            Error_Msg_N ("\Constraint_Error will be raised at run time?", N);
          end if;
       end Check_Bounds;
 
@@ -1344,7 +1344,7 @@ package body Sem_Aggr is
          if Range_Len < Len then
             Set_Raises_Constraint_Error (N);
             Error_Msg_N ("too many elements?", N);
-            Error_Msg_N ("\Constraint_Error will be raised at run-time?", N);
+            Error_Msg_N ("\Constraint_Error will be raised at run time?", N);
          end if;
       end Check_Length;
 
index 6e7b22ae7b43fbe503e75777b4c108a3936f32d0..71730bead251cfba4e5b0d1115d4ff8d53da26be 100644 (file)
@@ -6392,7 +6392,7 @@ package body Sem_Attr is
       --  Note: for the folding case, it is fine to treat Machine_Rounding
       --  exactly the same way as Rounding, since this is one of the allowed
       --  behaviors, and performance is not an issue here. It might be a bit
-      --  better to give the same result as it would give at run-time, even
+      --  better to give the same result as it would give at run time, even
       --  though the non-determinism is certainly permitted.
 
       when Attribute_Machine_Rounding =>
index 976bad0567d19ca97c528c9a5fef0030471864b6..43931b6a1bd1a9d5b4d1d3108a226f0c263b3f3f 100644 (file)
@@ -3148,7 +3148,7 @@ package body Sem_Ch3 is
          --  A rather specialized test. If we see two tasks being declared
          --  of the same type in the same object declaration, and the task
          --  has an entry with an address clause, we know that program error
-         --  will be raised at run-time since we can't have two tasks with
+         --  will be raised at run time since we can't have two tasks with
          --  entries at the same address.
 
          if Is_Task_Type (Etype (Id)) and then More_Ids (N) then
index 83604786394c12f256ec4bdd85ad725a09a8761c..ca4b051f2bbb4a5982a1f1295db56c3538c07042 100644 (file)
@@ -3943,7 +3943,7 @@ package body Sem_Ch4 is
 
                --  Check whether this is a component of the base type
                --  which is absent from a statically constrained subtype.
-               --  This will raise constraint error at run-time, but is
+               --  This will raise constraint error at run time, but is
                --  not a compile-time error. When the selector is illegal
                --  for base type as well fall through and generate a
                --  compilation error anyway.
index 1c55b3016f796b1d76c1522cf58e1c86b5d84857..b4c214ddeeb8d7f55d2cb7a4497fea18d6d2321b 100644 (file)
@@ -2288,7 +2288,7 @@ package body Sem_Elab is
                     ("task will be activated before elaboration of its body?",
                       Decl);
                   Error_Msg_N
-                    ("\Program_Error will be raised at run-time?", Decl);
+                    ("\Program_Error will be raised at run time?", Decl);
 
                elsif
                  Present (Corresponding_Body (Unit_Declaration_Node (Proc)))
index 58a0f3768c5f87b97ec78b8149cb6cad2012122c..efc0c18bcafa3cf5ac050ea4e390081f86c3f180 100644 (file)
@@ -7126,7 +7126,7 @@ package body Sem_Res is
       --      end Test;
 
       --  In this case we have nothing else to do. The membership test will be
-      --  done at run-time.
+      --  done at run time.
 
       elsif Ada_Version >= Ada_05
         and then Is_Class_Wide_Type (Etype (L))
@@ -8175,7 +8175,7 @@ package body Sem_Res is
                      --  the Sloc of the expression, not the original pragma.
 
                      Error_Msg_N
-                       ("?assertion would fail at run-time!",
+                       ("?assertion would fail at run time!",
                         Expression
                           (First (Pragma_Argument_Associations (Orig))));
                   end if;
@@ -8201,7 +8201,7 @@ package body Sem_Res is
                      null;
                   else
                      Error_Msg_N
-                       ("?check would fail at run-time!",
+                       ("?check would fail at run time!",
                         Expression
                           (Last (Pragma_Argument_Associations (Orig))));
                   end if;
@@ -8949,7 +8949,7 @@ package body Sem_Res is
                      --  The static analysis is not enough to know if the
                      --  interface is implemented or not. Hence we must pass
                      --  the work to the expander to generate code to evaluate
-                     --  the conversion at run-time.
+                     --  the conversion at run time.
 
                      Expand_Interface_Conversion (N, Is_Static => False);