Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147298 - [GCC4] app-doc/doxygen broken when compiled w/ -O3
Summary: [GCC4] app-doc/doxygen broken when compiled w/ -O3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Steve Arnold
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-12 05:04 UTC by Carsten Milkau
Modified: 2006-09-14 19:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Output of emerge info (emerge-info,2.74 KB, text/plain)
2006-09-12 05:06 UTC, Carsten Milkau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Carsten Milkau 2006-09-12 05:04:25 UTC
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 Carsten Milkau 2006-09-12 05:06:02 UTC
Created attachment 96784 [details]
Output of emerge info
Comment 2 Steve Arnold archtester gentoo-dev 2006-09-14 18:34:19 UTC
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 Steve Arnold archtester gentoo-dev 2006-09-14 19:36:47 UTC
Checking and filtering...