This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/30581] Deeply inlined static functions break stack creation
- 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: 24 Jan 2007 23:48:01 -0000
- Subject: [Bug c/30581] Deeply inlined static functions break stack creation
- References: <bug-30581-13975@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-01-24 23:48 -------
First you are violating C aliasing rules here:
u8 d[33] = {0}, *e = (u8 *)d;
*((unsigned int *)a) = strlen(e);
And a couple other places.
What options are you running this program with? if -O2, try -O2
-fno-strict-aliasing.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30581