Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 41483

Summary: emerge gcc3.3 (r5) assumes wrong optimisation flags if only -O is given.
Product: Gentoo Linux Reporter: Alexander Coers <alexander.coers>
Component: [OLD] GCC PortingAssignee: Please assign to toolchain <gcc-porting>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alexander Coers 2004-02-13 09:37:09 UTC
If you add to your optimisation flags in /etc/make.conf only -O instead of -O3 or -O2 or -O1 (you get it..), the replacement of possible -O? fails. E.g. if you have CFLAGS=-O -pipe, the ebuild will replace "-O " and thus produces the following CFLAGS: -O-pipe. The result is that compile will fail. 

Have not checked what happens if you put -O at the end of your CFLAGS string.

Reproducible: Always
Steps to Reproduce:
1.Replace your -O? with -O, and put it at the beginning of your CFLAGS in /etc/make.conf
2.emerge gcc3.3
3.
Actual Results:  
comilation will fail because of wrong or unknown compiler flags

Expected Results:  
compile flawless.
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-14 06:27:24 UTC
This have been fixed.


*** This bug has been marked as a duplicate of 40863 ***