https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116155

--- Comment #11 from Dimitar Dimitrov <dimitar at gcc dot gnu.org> ---
(In reply to qinzhao from comment #10)
> (In reply to Dimitar Dimitrov from comment #9)
> > For pru:
> >   sizeof (int) = 4
> >   __alignof__ (int) = 1
> > 
> > From gcc/config/pru.h:
> >   #define INT_TYPE_SIZE 32
> >   #define BIGGEST_ALIGNMENT 8
> 
> thanks a lot for the info.
> Okay, I see the issue. 
> 
> I think the line 
> 
>   if (sizeof (struct only_fam_2) != sizeof (int))
> 
> is wrong, it should be:
> 
>   if (sizeof (struct only_fam_2) != __alignof__ (int))

With that change, the test passes for both x86 and pru.

Reply via email to