diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2008-03-25 17:58:54 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2008-03-25 17:58:54 +0000 |
commit | 3a9634be2d8d3681e17598af7b97878a69460eb6 (patch) | |
tree | dddb31a23b1ae3c9712c2964e2c18f5a155b1b78 | |
parent | f4d3e7fd81b4e592fd85e12697fe5ea1c5e23cc5 (diff) | |
download | gcc-3a9634be2d8d3681e17598af7b97878a69460eb6.zip gcc-3a9634be2d8d3681e17598af7b97878a69460eb6.tar.gz gcc-3a9634be2d8d3681e17598af7b97878a69460eb6.tar.bz2 |
revert: re PR ada/35186 (implicit assumption about alignment of DImode)
Revert
2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
PR ada/35186
* decl.c (maybe_pad_type): Avoid padding an integral type when
bumping its alignment is sufficient.
From-SVN: r133526
-rw-r--r-- | gcc/ada/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/ada/decl.c | 12 |
2 files changed, 8 insertions, 12 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index a807aac..3f19ec1 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,11 @@ +2008-03-25 Eric Botcazou <ebotcazou@adacore.com> + + Revert + 2008-03-05 Eric Botcazou <ebotcazou@adacore.com> + PR ada/35186 + * decl.c (maybe_pad_type): Avoid padding an integral type when + bumping its alignment is sufficient. + 2008-03-25 Arnaud Charlet <charlet@adacore.com> * exp_ch6.adb, exp_disp.adb: Update copyright notice. diff --git a/gcc/ada/decl.c b/gcc/ada/decl.c index c0306bd..f7b51d5 100644 --- a/gcc/ada/decl.c +++ b/gcc/ada/decl.c @@ -5529,18 +5529,6 @@ maybe_pad_type (tree type, tree size, unsigned int align, if (align == 0 && !size) return type; - /* If no size is specified and we have an integral type, and changing - the alignment won't change its size, return a copy of the type - with the specified alignment. */ - if (!size - && INTEGRAL_TYPE_P (type) - && value_factor_p (orig_size, align)) - { - type = copy_type (type); - TYPE_ALIGN (type) = align; - return type; - } - /* We used to modify the record in place in some cases, but that could generate incorrect debugging information. So make a new record type and name. */ |