http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46488
--- Comment #13 from Lance Kinley 2010-11-26 22:57:08
UTC ---
-O and -O2 are broken in 4.5.1 but work in the 4.5 and 4.6 snapshots.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46488
--- Comment #11 from Lance Kinley 2010-11-26 22:10:16
UTC ---
Works with -O and -O2 on the 4.5 snapshot and the 4.6 snapshot.
-O3 is the culprit.
I have not tested with any other versions other than 4.5.1 and the two
snapshots mentioned.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46488
--- Comment #7 from Lance Kinley 2010-11-17 06:15:36
UTC ---
I compiled and used the latest SVN snapshot:
gcc (GCC) 4.6.0 20101116 (experimental) [trunk revision 166840]
And got the same exact results as before with regard to both -O and -O3 in
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46488
--- Comment #5 from Lance Kinley 2010-11-16 23:52:24
UTC ---
I compiled the latest snapshot:
gcc (GCC) 4.5.2 2010 (prerelease)
and tried -O3 -fno-delayed-branch again on server/core_filters.c and that still
doesn't work.
I retried -O -fno-d
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46488
--- Comment #3 from Lance Kinley 2010-11-16 16:48:11
UTC ---
My apologies, -O -fno-delayed-branch does fix it.
-O3 -fno-delayed-branch does not work, however.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46488
--- Comment #2 from Lance Kinley 2010-11-16 16:37:20
UTC ---
Adding -fno-delayed-branch does not resolve the issue.
I don't know which function is the culprit. I'll try to dig into it more.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46488
Summary: server/core_filters.c from apache httpd 2.2.17 does
not produce good code with optimizations (-O) used on
Solaris Sparc 64-bit
Product: gcc
Version: 4.5.1