[Bug c/85923] invalid code generation when incrementing pointer referenced by pointer
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri May 25 12:58:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85923
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Does -fno-strict-aliasing fix this? I suspect the issue is the pointers types
"char*" and "unsigned char*" are considered to be different aliasing groups
(which is correct) and that is causing gcc to output code that you don't
expect.
More information about the Gcc-bugs
mailing list