aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sem.adb
diff options
context:
space:
mode:
authorJustin Squirek <squirek@adacore.com>2016-06-22 10:42:46 +0000
committerArnaud Charlet <charlet@gcc.gnu.org>2016-06-22 12:42:46 +0200
commit194d6f3fc91c5642cb2dd9e93379af66d5e71e0c (patch)
treec35548449fd5d924b590fb1c7b93d165c5f631a0 /gcc/ada/sem.adb
parentd1aea5ddc5c0667762f8e0138c60199ba0f31fe2 (diff)
downloadgcc-194d6f3fc91c5642cb2dd9e93379af66d5e71e0c.zip
gcc-194d6f3fc91c5642cb2dd9e93379af66d5e71e0c.tar.gz
gcc-194d6f3fc91c5642cb2dd9e93379af66d5e71e0c.tar.bz2
sem_ch8.adb (Push_Scope): Add a check for when the scope table is empty to assign the global variable...
2016-06-22 Justin Squirek <squirek@adacore.com> * sem_ch8.adb (Push_Scope): Add a check for when the scope table is empty to assign the global variable Configuration_Component_Alignment. * sem.adb (Do_Analyze): Add Configuration_Component_Alignment to be assigned when the environment is cleaned instead of the default. * sem.ads Add a global variable Configuration_Component_Alignment to store the value given by pragma Component_Alignment in the context of a configuration file. * sem_prag.adb (Analyze_Pragma): Correct the case for Component_Alignment so that the pragma is verified and add comments to explain how it is applied to the scope stack. 2016-06-22 Justin Squirek <squirek@adacore.com> * sprint.adb (Sprint_Node_Actual): Add check in the case of an N_Object_Declaration when evaluating an expression to properly ignore errors. From-SVN: r237694
Diffstat (limited to 'gcc/ada/sem.adb')
-rw-r--r--gcc/ada/sem.adb3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ada/sem.adb b/gcc/ada/sem.adb
index 3cd0730..ea5f474 100644
--- a/gcc/ada/sem.adb
+++ b/gcc/ada/sem.adb
@@ -1355,7 +1355,8 @@ package body Sem is
Outer_Generic_Scope := Empty;
Scope_Suppress := Suppress_Options;
Scope_Stack.Table
- (Scope_Stack.Last).Component_Alignment_Default := Calign_Default;
+ (Scope_Stack.Last).Component_Alignment_Default :=
+ Configuration_Component_Alignment;
Scope_Stack.Table
(Scope_Stack.Last).Is_Active_Stack_Base := True;