Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 132810 - [3.4/bad-code] gcc 3.4.x generates bad code with -O2 on x86_64
Summary: [3.4/bad-code] gcc 3.4.x generates bad code with -O2 on x86_64
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High critical
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/PR21804
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-09 12:11 UTC by Sebastian Siewior
Modified: 2006-10-23 00:32 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Siewior 2006-05-09 12:11:14 UTC
As reported here http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21804 gcc 3.4.* is generatig bad code. I tested it with with
gcc --version
gcc (GCC) 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)

and it is still the same. -O1 seems to work, -Os, -O2 and -O3 are evil.
Therefore please mask 3.4 (or strip the CFLAGS). There is no other stable gcc in portage and 3.3 + 4.1 are masked.
Comment 1 SpanKY gentoo-dev 2006-05-09 17:00:57 UTC
sorry, but not a chance that 3.4 will be masked
Comment 2 Mark Loeser (RETIRED) gentoo-dev 2006-05-10 13:16:50 UTC
Does this affect some package in the tree?  If not, I'm not going to try finding the commit which fixed this.  If you can show me something in the tree that is affected by this bug, then please reopen it.

if someone on toolchain disagrees, please let me know, but I don't think this is going to be worth it :)
Comment 3 Sebastian Siewior 2006-05-10 15:34:13 UTC
I noticed this by chance and though it is serious. I "greped" the kernel and libc and did not find anything. Sorry for the inconvenience.