decl.c (gnat_to_gnu_type, [...]): Wrap modular packed array types in both little...
authorRobert Dewar <dewar@gnat.com>
Tue, 21 Sep 2004 15:31:03 +0000 (15:31 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 21 Sep 2004 15:31:03 +0000 (17:31 +0200)
commit910d20fcb8c5fa83c64c1540cca945cc0c31d77c
tree0f2f5fda62754d844de054ab5257854ecaf80e0f
parentf1b1846249458e8b583b407f674fec541c4f6869
decl.c (gnat_to_gnu_type, [...]): Wrap modular packed array types in both little- and big-endian cases.

2004-09-21  Robert Dewar  <dewar@gnat.com>

* decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
packed array types in both little- and big-endian cases. This change
ensures that we no longer count on the unused bits being initialized
for such types (and in particular ensures that equality testing will
only read the relevant bits).
Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
These changes mean that we no longer need to initialize small packed
arrays.
(gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
optimization to an LJM field as to its parent field.

* ada-tree.h:, trans.c, utils.c, utils2.c:
Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P

From-SVN: r87806
gcc/ada/ChangeLog
gcc/ada/ada-tree.h
gcc/ada/decl.c
gcc/ada/trans.c
gcc/ada/utils.c
gcc/ada/utils2.c