diff options
author | 2008-12-21 21:40:49 +0000 | |
---|---|---|
committer | 2008-12-21 21:40:49 +0000 | |
commit | 87e20f0786910d3aaa45a027624aa433aaedcb31 (patch) | |
tree | 25a4e43c4695e4be5ef9ab9917a1f3d7204e50ca /eclass | |
parent | Version bump. (diff) | |
download | historical-87e20f0786910d3aaa45a027624aa433aaedcb31.tar.gz historical-87e20f0786910d3aaa45a027624aa433aaedcb31.tar.bz2 historical-87e20f0786910d3aaa45a027624aa433aaedcb31.zip |
gcc emits -fstrict-overflow on '>gcc-4.2' need to be able to disable that and pass -U to undefine bad defines - http://gcc.gnu.org/gcc-4.2/changes.html
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/flag-o-matic.eclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass index 0770ae499a40..4922307fd74f 100644 --- a/eclass/flag-o-matic.eclass +++ b/eclass/flag-o-matic.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.126 2008/11/03 05:52:39 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.127 2008/12/21 21:40:49 solar Exp $ # @ECLASS: flag-o-matic.eclass # @MAINTAINER: @@ -33,7 +33,7 @@ setup-allowed-flags() { export ALLOWED_FLAGS="-pipe" export ALLOWED_FLAGS="${ALLOWED_FLAGS} -O -O0 -O1 -O2 -mcpu -march -mtune" export ALLOWED_FLAGS="${ALLOWED_FLAGS} -fstack-protector -fstack-protector-all" - export ALLOWED_FLAGS="${ALLOWED_FLAGS} -fbounds-checking" + export ALLOWED_FLAGS="${ALLOWED_FLAGS} -fbounds-checking -fno-strict-overflow" export ALLOWED_FLAGS="${ALLOWED_FLAGS} -fno-PIE -fno-pie -fno-unit-at-a-time" export ALLOWED_FLAGS="${ALLOWED_FLAGS} -g -g[0-9] -ggdb -ggdb[0-9] -gstabs -gstabs+" export ALLOWED_FLAGS="${ALLOWED_FLAGS} -fno-ident" @@ -41,7 +41,7 @@ setup-allowed-flags() { fi # allow a bunch of flags that negate features / control ABI ALLOWED_FLAGS="${ALLOWED_FLAGS} -fno-stack-protector -fno-stack-protector-all \ - -fno-strict-aliasing -fno-bounds-checking" + -fno-strict-aliasing -fno-bounds-checking -fstrict-overflow" ALLOWED_FLAGS="${ALLOWED_FLAGS} -mregparm -mno-app-regs -mapp-regs \ -mno-mmx -mno-sse -mno-sse2 -mno-sse3 -mno-3dnow \ -mips1 -mips2 -mips3 -mips4 -mips32 -mips64 -mips16 \ @@ -51,7 +51,7 @@ setup-allowed-flags() { -mflat -mno-flat -mno-faster-structs -mfaster-structs \ -m32 -m64 -mabi -mlittle-endian -mbig-endian -EL -EB -fPIC \ -mlive-g0 -mcmodel -mstack-bias -mno-stack-bias \ - -msecure-plt -m*-toc -D*" + -msecure-plt -m*-toc -D* -U*" # {C,CXX,F,FC}FLAGS that we are think is ok, but needs testing # NOTE: currently -Os have issues with gcc3 and K6* arch's |