Bug 147298 - [GCC4] app-doc/doxygen broken when compiled w/ -O3
Bug#: 147298 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: nerdboy@gentoo.org Reported By: chat.noir@arcor.de
Component: Applications
URL:  http://forums.gentoo.org/viewtopic-t-495600.html
Summary: [GCC4] app-doc/doxygen broken when compiled w/ -O3
Keywords:  
Status Whiteboard: 
Opened: 2006-09-12 05:04 0000
Description:   Opened: 2006-09-12 05:04 0000
Compiling doxygen with GCC 4 and -O3 causes doxygen to behave improperly. Could
verify it myself with app-doc/doxygen-1.4.[347], gcc-4.1.1 and
CFLAGS="-march=athlon-xp -O3 -mfpmath=sse -msse". Setting optimization level
down to -O2 made the problem disappear, so it might be a problem with GCC.
Still the ebuild might want to check for affected versions of gcc and perform
some actions to avoid the problem, or whatever is more suitable.

------- Comment #1 From Carsten Milkau 2006-09-12 05:06:02 0000 -------
Created an attachment (id=96784) [details]
Output of emerge info

------- Comment #2 From Steve Arnold 2006-09-14 18:34:19 0000 -------
Yes, -O3 still produces incorrect optimizations.  In general, it's best not to
try to over-optimze code with gcc; not just because -O3 is buggy, but also
because in the majority of cases, gcc is way smarter about it.  It will
automatically enable the stuff that works, including mmx, sse, etc, when it
can.  Forcing things OTOH, breaks packages more often than not.  I would just
use -O2, along with a few other safe things, and not worry about it...

------- Comment #3 From Steve Arnold 2006-09-14 19:36:47 0000 -------
Checking and filtering...