[Bug middle-end/51323] g++ confuses this with function argument in optimized call

dak at gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Nov 28 18:59:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51323

--- Comment #4 from David Kastrup <dak at gnu dot org> 2011-11-28 18:24:10 UTC ---
I can confirm that my version of gcc identifying itself as
gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) 
makes your test program abort under -O2.  If you _cannot_ confirm this with
your version 4.6.1 but with the trunk, it would appear that Ubuntu 11.10 (or
its upstream Debian) has imprudently integrated unstable code from the 4.7
branch into the version of gcc they choose to distribute with the release.

If your test program can reasonably be considered as perfectly correlated with
the occurence of the bug (I don't have the expertise), I'll be using it as an
autoconf test in Lilypond for deciding whether to compile with
-fno-optimize-sibling-calls instead of the current test just checking the
version.

Thanks.



More information about the Gcc-bugs mailing list