This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53707] compiler generates wrong code
- From: "mikpe at it dot uu.se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 03 Jul 2012 15:04:56 +0000
- Subject: [Bug c++/53707] compiler generates wrong code
- Auto-submitted: auto-generated
- References: <bug-53707-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53707
--- Comment #18 from Mikael Pettersson <mikpe at it dot uu.se> 2012-07-03 15:04:56 UTC ---
Right, I understood that the C test case invoked implementation-defined
behaviour, but inlining does invalidate any assumptions it might have made.
Attaching an "__attribute__((__noinline__))" to find_stack_direction seems to
make it work also with gcc-4.6.4 -O3.