This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/52023] _Alignof (double) yields wrong value on x86


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-27 21:49:59 UTC ---
What happens if you have the attribute packed on the structure?  Then guess
what _Alignof should always return 1 for all types end of story according to
how you interrupt the C standard.
The alignment requirement for double is 8 end of story.  But the alignment in
structures is 4.  Those can be different as far as I can tell.  And yes it is a
dup because of the same reason why GCC's alignof and _Alignof are the same and
are supposed to be the same.

*** This bug has been marked as a duplicate of bug 10360 ***


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]