This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/25496] [m68k] Compiled Code Segfaults
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Dec 2005 21:14:59 -0000
- Subject: [Bug target/25496] [m68k] Compiled Code Segfaults
- References: <bug-25496-11770@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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