Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80005 - gcc-3.3.5 does not support -mtune ( toolchain.eclass bug )
Summary: gcc-3.3.5 does not support -mtune ( toolchain.eclass bug )
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-29 15:41 UTC by Spider (RETIRED)
Modified: 2005-01-29 23:45 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 Spider (RETIRED) gentoo-dev 2005-01-29 15:41:28 UTC
gcc_do_filter_flags is declared twice inside the .eclass,  and in the second declaration there is a bug which comes down to this: 

if use amd64 || use x86 ; then
  setting="`get-flag mcpu`"
  [ ! -z "${setting}" ] && \
     replace-flags -mcpu="${setting}" -mtune="${setting}" && \
     ewarn "-mcpu is deprecated on your arch\a\a\a" && \
      epause 5
fi


unfortunately, this is used in the 3.3.5 ebuild which -doesnt- have the -mtune flag supported, which means that CFLAGS (and CXXFLAGS)  get replaced from -mcpu to -mtune  and then aren't filtered back...


reproducible by:
CFLAGS="-mcpu=i686 -O2"
# CXXFLAGS <-- commented out.



the check from the previous declaration of gcc_do_filter_flags needs to be incorporated later in the build as well.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2005-01-29 23:45:48 UTC
fixed in cvs, thanks.