This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/25496] [m68k] Compiled Code Segfaults



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]