aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/ali.ads
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2014-07-29 15:16:09 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2014-07-29 15:16:09 +0200
commit220d1fd9dfd8d7abcb9d5cc38f5ee8e5ba7c2a64 (patch)
tree5389f6a46906c759c37c6dffed297c34f415d891 /gcc/ada/ali.ads
parenta08bf2de29311011ebdfe1454afb832b0cdbb453 (diff)
downloadgcc-220d1fd9dfd8d7abcb9d5cc38f5ee8e5ba7c2a64.zip
gcc-220d1fd9dfd8d7abcb9d5cc38f5ee8e5ba7c2a64.tar.gz
gcc-220d1fd9dfd8d7abcb9d5cc38f5ee8e5ba7c2a64.tar.bz2
[multiple changes]
2014-07-29 Robert Dewar <dewar@adacore.com> * ali.adb (Initialize_ALI): Initialize SSO_Default_Specified (Scan_ALI): Set SSO_Default in ALIs_Record (Scan_ALI): Set SSO_Default_Specified. * ali.ads (ALIs_Record): Add field SSO_Default (SSO_Default_Specified): New global switch. * bcheck.adb (Check_Consistent_SSO_Default): New procedure (Check_Configuration_Consistency): Call this procedure * einfo.adb (SSO_Set_High_By_Default): New function (SSO_Set_Low_By_Default): New function (Set_SSO_Set_High_By_Default): New procedure (Set_SSO_Set_Low_By_Default): New procedure (Write_Entity_Flags): List new flags * einfo.ads (SSO_Set_Low_By_Default): New flag (SSO_Set_High_By_Default): New flag * freeze.adb (Set_SSO_From_Default): New procedure (Freeze_Array_Type): Call Set_SSO_From_Default (Freeze_Record_Type): Call Set_SSO_From_Default * gnat_rm.texi: Document pragma Default_Scalar_Storage_Order * lib-writ.adb (Write_ALI): Set OL/OH in P line as needed * lib-writ.ads: Add OL/OH parameters to P line * opt.adb: Set Default_SSO, Default_SSO_Config as appropriate * opt.ads (Default_SSO): New global switch (Default_SSO_Config): New global switch * repinfo.adb (List_Scalar_Storage_Order): List SSO when it is set by default using pragma Default_Scalar_Storage_Order. * sem.ads (Scope_Stack_Entry): Add component Save_Default_SSO * sem_ch13.adb (Inherit_Delayed_Rep_Aspects): Clear SSO defaults when explicit SSO is inherited. (Analyze_Attribute_Definition_Clause): Clear SSO defaults when explicit SSO is specified. (Inherit_Aspects_At_Freeze_Point): Clear SSO default when inheriting SSO. * sem_ch3.adb (Set_Default_SSO): New procedure (Analyze_Private_Extension_Declaration): Set defualt SSO (Array_Type_Declaration): ditto (Build_Derived_Array_Type): ditto (Build_Derived_Private_Type): ditto (Build_Derived_Record_Type): ditto (Build_Derived_Type): ditto (Make_Class_Wide_Type): ditto (Record_Type_Declaration): ditto * sem_ch8.adb (Pop_Scope): Restore Default_SSO (Push_Scope): Save Default_SSO * sem_prag.adb (Analyze_Pragma, case Default_Scalar_Storage_Order): Set Default_SSO 2014-07-29 Ed Schonberg <schonberg@adacore.com> * sem_ch6.adb (Valid_Operator_Definition): Verify that all parameter have mode IN. This check must be done here for subprogram instantiations that have operator names, because their analysis does not follow the same path as that for subprogram declarations. From-SVN: r213167
Diffstat (limited to 'gcc/ada/ali.ads')
-rw-r--r--gcc/ada/ali.ads11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/ada/ali.ads b/gcc/ada/ali.ads
index 66a462e..1b05ba6 100644
--- a/gcc/ada/ali.ads
+++ b/gcc/ada/ali.ads
@@ -188,6 +188,12 @@ package ALI is
-- Set to True if file was compiled with Normalize_Scalars. Not set if
-- 'P' appears in Ignore_Lines.
+ SSO_Default : Character;
+ -- Set to 'H' or 'L' if file was compiled with a configuration pragma
+ -- file containing Default_Scalar_Storage_Order (High/Low_Order_First).
+ -- Set to ' ' if neither pragma was present. Not set if 'P' appears in
+ -- Ignore_Lines.
+
Unit_Exception_Table : Boolean;
-- Set to True if unit exception table pointer generated. Not set if 'P'
-- appears in Ignore_Lines.
@@ -501,6 +507,11 @@ package ALI is
-- ali files, showing whether a restriction pragma exists anywhere, and
-- accumulating the aggregate knowledge of violations.
+ SSO_Default_Specified : Boolean := False;
+ -- Set to True if at least one ALI file contains an OH/OL flag indicating
+ -- that it was compiled with a configuration pragmas file containing the
+ -- pragma Default_Scalar_Storage_Order (OH/OL present in ALI file P line).
+
Stack_Check_Switch_Set : Boolean := False;
-- Set to True if at least one ALI file contains '-fstack-check' in its
-- argument list.