This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: PATCH to layout_decl for middle-end/27945
> I think a simpler change would be to just select between
>
> DECL_ALIGN (decl) = MIN (DECL_ALIGN (decl), BITS_PER_UNIT);
>
> and
>
> if (known_align)
> DECL_ALIGN (decl) = MIN (DECL_ALIGN (decl), known_align);
>
> for packing, based on a langhook.
Thanks for the suggestion. I'll need to carefully assess its impact on the
broad range of cases we have to support in Ada (IIRC it took me 3 weeks
during our internal 3.2->3.4 transition to come up with the patch I posted).
--
Eric Botcazou