diff options
author | Tristan Gingold <gingold@adacore.com> | 2007-10-15 15:54:21 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2007-10-15 15:54:21 +0200 |
commit | a8ee464537c3a5e4ec0c4e15fed38edb9cd567e6 (patch) | |
tree | 69d0171cdbf05adaa61c531fed58c74eac7c9c66 /gcc/ada/layout.adb | |
parent | 250db54966b8b904a54eff9d940cb84f799c5331 (diff) | |
download | gcc-a8ee464537c3a5e4ec0c4e15fed38edb9cd567e6.zip gcc-a8ee464537c3a5e4ec0c4e15fed38edb9cd567e6.tar.gz gcc-a8ee464537c3a5e4ec0c4e15fed38edb9cd567e6.tar.bz2 |
debug.adb: Document use of -gnatd.a and -gnatd.I
2007-10-15 Tristan Gingold <gingold@adacore.com>
* debug.adb: Document use of -gnatd.a and -gnatd.I
* layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
From-SVN: r129321
Diffstat (limited to 'gcc/ada/layout.adb')
-rw-r--r-- | gcc/ada/layout.adb | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/gcc/ada/layout.adb b/gcc/ada/layout.adb index 744d32f..f92a37d 100644 --- a/gcc/ada/layout.adb +++ b/gcc/ada/layout.adb @@ -819,6 +819,7 @@ package body Layout is OK : Boolean; LLo : Uint; LHi : Uint; + pragma Warnings (Off, LHi); begin Set_Parent (Len, E); @@ -1908,7 +1909,9 @@ package body Layout is First_Discr : Entity_Id; Last_Discr : Entity_Id; Esiz : SO_Ref; - RM_Siz : SO_Ref; + + RM_Siz : SO_Ref; + pragma Warnings (Off, SO_Ref); RM_Siz_Expr : Node_Id := Empty; -- Expression for the evolving RM_Siz value. This is typically a @@ -2789,10 +2792,13 @@ package body Layout is -- On VMS, also reset for odd "in between" sizes, e.g. a 17-bit -- record is given an alignment of 4. This is more consistent with - -- what DEC Ada does. - - elsif OpenVMS_On_Target and then Siz > System_Storage_Unit then + -- what DEC Ada does (-gnatd.a turns this off which can be used to + -- examine the value of this special transformation). + elsif OpenVMS_On_Target + and then not Debug_Flag_Dot_A + and then Siz > System_Storage_Unit + then if Siz <= 2 * System_Storage_Unit then Align := 2; elsif Siz <= 4 * System_Storage_Unit then |