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
+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.
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. */