diff options
author | Thomas Quinot <quinot@adacore.com> | 2009-04-10 13:10:46 +0000 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2009-04-10 15:10:46 +0200 |
commit | 3996951a3e5a105d1af6e41c09b1bfda72bd96b7 (patch) | |
tree | e40e135189c134e9a8319821f585d88b5d86e600 /gcc/ada/sem_eval.adb | |
parent | b62a90f2591debf3cba71c3b0ce34643e874b5fb (diff) | |
download | gcc-3996951a3e5a105d1af6e41c09b1bfda72bd96b7.zip gcc-3996951a3e5a105d1af6e41c09b1bfda72bd96b7.tar.gz gcc-3996951a3e5a105d1af6e41c09b1bfda72bd96b7.tar.bz2 |
sem_eval.adb: Minor reformatting
2009-04-10 Thomas Quinot <quinot@adacore.com>
* sem_eval.adb: Minor reformatting
From-SVN: r145894
Diffstat (limited to 'gcc/ada/sem_eval.adb')
-rw-r--r-- | gcc/ada/sem_eval.adb | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/gcc/ada/sem_eval.adb b/gcc/ada/sem_eval.adb index 62772e3..2edcd0e 100644 --- a/gcc/ada/sem_eval.adb +++ b/gcc/ada/sem_eval.adb @@ -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); |