On Fri, 14 Nov 2014, Jakub Jelinek wrote:

> On Fri, Nov 14, 2014 at 09:46:14AM +0300, Yury Gribov wrote:
> > Hi all,
> > 
> > This patch fixes https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63802 by only
> > limiting minimal type alignment with BIGGEST_ALIGNMENT for types with no
> > __attribute__((aligned)).
> > 
> > Bootstrapped and regtested on x64.  Ok for trunk?
> 
> The function is primarily used by the C FE for _Alignas, and I have no idea
> if such a change is desirable for that very much user visible case.  Joseph?

If it is true that a type satisfying TYPE_USER_ALIGN will never be 
allocated at an address less-aligned than its TYPE_ALIGN, even if that's 
greater than BIGGEST_ALIGNMENT, then the change seems correct for C11 
_Alignof.

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to