[Bug target/25496] [m68k] Compiled Code Segfaults
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Dec 19 21:15:00 GMT 2005
------- Comment #1 from pinskia at gcc dot gnu dot org 2005-12-19 21:14 -------
*(long *)benchar
You are violating C aliasing rules as you are acessing a char array as a long
(yes this is an aliasing violation, the opposite is not an aliasing violation
that is acessing a long as a char is not an aliasing violation).
Can you see if -fno-strict-aliasing "fixes" your problem?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25496
More information about the Gcc-bugs
mailing list