[Bug target/104261] gcc uses fildq and fistpq on unaligned addesss for atomic accesses

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jan 28 08:09:04 GMT 2022


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|i?86                        |i?86-*-*
   Last reconfirmed|                            |2022-01-28
     Ever confirmed|0                           |1
                 CC|                            |jsm28 at gcc dot gnu.org
           Keywords|                            |wrong-code
             Status|UNCONFIRMED                 |NEW

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed, the following fails

struct s {
    unsigned misalign;
    struct { _Atomic unsigned long long a; };
};
_Static_assert (__alignof__ (struct s) == sizeof (unsigned long long));


More information about the Gcc-bugs mailing list