Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7765 - gcc 3.2 on ppc compiles unreliably using -O3 optimization
Summary: gcc 3.2 on ppc compiles unreliably using -O3 optimization
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Highest critical (vote)
Assignee: Kevyn Shortell (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-10 15:24 UTC by Kevyn Shortell (RETIRED)
Modified: 2006-02-04 06:03 UTC (History)
1 user (show)

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 Kevyn Shortell (RETIRED) gentoo-dev 2002-09-10 15:24:16 UTC
In using -O3 flags with gcc 3.2 on ppc, I've noticed inconsistant results in 
compiling. most things build, random things fail.

Doing a stage1 build, parts of emerge system just don't get compiled, when you 
manually try to compile the parts that were missed, some things segfault. 
This appears to be Altivec/74xx related, as Gerk reports it doesn't happen on 
75x series CPUs

Until this is nailed down to something more specific than -O3 sucks, I'd 
recommend we don't use -O3 as part of the default make.conf
Comment 1 Mark Guertin 2002-09-10 15:36:30 UTC
I will make adjustments for this tonight, and wholeheartedly agree that -O3 is a
bad thing for ppc and gcc 3.2 final (funny thing is it worked great for gcc
3.2_pre) ?
Comment 2 Jim Bray 2003-01-30 22:53:40 UTC
  I have discovered an architecture-independent bug in current Gentoo
gcc that might be what you are seeing here:

http://bugs.gentoo.org/show_bug.cgi?id=14699