[Bug c++/38562] [4.3/4.4 regression] mysql miscompiles and causes testsuite failures
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Dec 21 22:49:00 GMT 2008
------- Comment #8 from pinskia at gcc dot gnu dot org 2008-12-21 22:48 -------
Does compiling with -O2 -fno-strict-aliasing fix the issue. I thought I saw
some aliasing violations in the source dealing with accessing a "char *" as a
"Log_event::Byte*" (aka "unsigned char *"). Now what is only defined is the
accessing anything by a char/unsigned char/signed char, accessing pointers via
a different type is undefined. The function which I saw the issue is in
copy_str_and_move where there are going to be accesses in those two types.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38562
More information about the Gcc-bugs
mailing list