]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
sem_eval.adb: Minor reformatting
authorThomas Quinot <quinot@adacore.com>
Fri, 10 Apr 2009 13:10:46 +0000 (13:10 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Fri, 10 Apr 2009 13:10:46 +0000 (15:10 +0200)
2009-04-10  Thomas Quinot  <quinot@adacore.com>

* sem_eval.adb: Minor reformatting

From-SVN: r145894

gcc/ada/ChangeLog
gcc/ada/sem_eval.adb

index 22031648b0479b6c707f6d949a44456ff26b289a..0e93d6d37302e3778f65a279458297fc5057cd95 100644 (file)
@@ -1,3 +1,7 @@
+2009-04-10  Thomas Quinot  <quinot@adacore.com>
+
+       * sem_eval.adb: Minor reformatting
+
 2009-04-10  Thomas Quinot  <quinot@adacore.com>
 
        * snames.h, snames.ads, snames.adb: Remove files, now generated from
index 62772e39991ccd16cc764969e27cd7392c4e862a..2edcd0ec8dbf174112c9142976cf2c557dee759f 100644 (file)
@@ -1489,8 +1489,8 @@ package body Sem_Eval is
    -- Eval_Concatenation --
    ------------------------
 
-   --  Concatenation is a static function, so the result is static if
-   --  both operands are static (RM 4.9(7), 4.9(21)).
+   --  Concatenation is a static function, so the result is static if both
+   --  operands are static (RM 4.9(7), 4.9(21)).
 
    procedure Eval_Concatenation (N : Node_Id) is
       Left  : constant Node_Id   := Left_Opnd (N);
@@ -1500,8 +1500,8 @@ package body Sem_Eval is
       Fold  : Boolean;
 
    begin
-      --  Concatenation is never static in Ada 83, so if Ada 83
-      --  check operand non-static context
+      --  Concatenation is never static in Ada 83, so if Ada 83 check operand
+      --  non-static context.
 
       if Ada_Version = Ada_83
         and then Comes_From_Source (N)
@@ -1520,20 +1520,16 @@ package body Sem_Eval is
 
       Test_Expression_Is_Foldable (N, Left, Right, Stat, Fold);
 
-      if Is_Standard_Character_Type (C_Typ)
-        and then Fold
-      then
-         null;
-      else
+      if not (Is_Standard_Character_Type (C_Typ) and then Fold) then
          Set_Is_Static_Expression (N, False);
          return;
       end if;
 
       --  Compile time string concatenation
 
-      --  ??? Note that operands that are aggregates can be marked as
-      --  static, so we should attempt at a later stage to fold
-      --  concatenations with such aggregates.
+      --  ??? Note that operands that are aggregates can be marked as static,
+      --  so we should attempt at a later stage to fold concatenations with
+      --  such aggregates.
 
       declare
          Left_Str   : constant Node_Id := Get_String_Val (Left);