http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52811
Bug #: 52811
Summary: -O3 flag makes xorg-server-1.11.4 compile fail on
amd64
Classification: Unclassified
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: [email protected]
ReportedBy: [email protected]
When compiling xorg-server-1.11.4 with the -O3 optimization flag enabled, the
compilation of xorg-server fails in xf86EdidModes.c at line 747, about an array
subscript being above array bounds.
Recompiling with the -O2 flag the error disappears without any other changes to
the configuration.
I ran into the problem with gcc-4.5.3 today, but I ran into it several months
back, possibly with 4.5.2 (I'm not quite sure, and didn't think it was gcc
related at the time.)
This happened on Gentoo reportedly to others besides myself, according to
echoes in #gentoo on irc.freenode.net.