[Bug c/74751] gcc can't generate correct code
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Aug 12 07:52:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=74751
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |jakub at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
This is invalid, violates C aliasing rules.
If you don't want to change your code, you can use -fno-strict-aliasing,
otherwise e.g. replace the bogus ShortCopy with memcpy?
More information about the Gcc-bugs
mailing list