[Bug middle-end/42103] [4.4 regression] packed 64-bit field reports as violation of strict aliasing rules
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Nov 21 00:54:00 GMT 2009
------- Comment #3 from pinskia at gcc dot gnu dot org 2009-11-21 00:54 -------
(In reply to comment #2)
> I've also confirmed that using the 'may_alias' attribute in the 64-bit version
> suppresses the warning, although I think this qualifies as a workaround, not a
> fix to the problem. I'm also not sure how our project leaders would consider
> such a workaround, given that the intent behind extra warnings is to make the
> code better.
It is not a work around, it fixes the aliasing issue in your code.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42103
More information about the Gcc-bugs
mailing list