/[gentoo-x86]/eclass/flag-o-matic.eclass
Gentoo

Diff of /eclass/flag-o-matic.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.205 Revision 1.206
1# Copyright 1999-2014 Gentoo Foundation 1# Copyright 1999-2014 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.205 2015/05/06 07:04:53 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.206 2015/05/24 07:05:30 vapier Exp $
4 4
5# @ECLASS: flag-o-matic.eclass 5# @ECLASS: flag-o-matic.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# toolchain@gentoo.org 7# toolchain@gentoo.org
8# @BLURB: common functions to manipulate and query toolchain flags 8# @BLURB: common functions to manipulate and query toolchain flags
24# Note: shell globs and character lists are allowed 24# Note: shell globs and character lists are allowed
25setup-allowed-flags() { 25setup-allowed-flags() {
26 ALLOWED_FLAGS="-pipe" 26 ALLOWED_FLAGS="-pipe"
27 ALLOWED_FLAGS+=" -O -O1 -O2 -Os -Og -mcpu -march -mtune" 27 ALLOWED_FLAGS+=" -O -O1 -O2 -Os -Og -mcpu -march -mtune"
28 ALLOWED_FLAGS+=" -fstack-protector* -fsanitize=*" 28 ALLOWED_FLAGS+=" -fstack-protector* -fsanitize=*"
29 ALLOWED_FLAGS+=" -fbounds-checking -fno-strict-overflow" 29 ALLOWED_FLAGS+=" -fbounds-check -fbounds-checking -fno-strict-overflow"
30 ALLOWED_FLAGS+=" -fno-PIE -fno-pie -nopie -fno-unit-at-a-time" 30 ALLOWED_FLAGS+=" -fno-PIE -fno-pie -nopie -fno-unit-at-a-time"
31 ALLOWED_FLAGS+=" -g -g[0-9] -ggdb -ggdb[0-9] -gdwarf-* gstabs -gstabs+" 31 ALLOWED_FLAGS+=" -g -g[0-9] -ggdb -ggdb[0-9] -gdwarf-* gstabs -gstabs+"
32 ALLOWED_FLAGS+=" -fno-ident -fpermissive -frecord-gcc-switches" 32 ALLOWED_FLAGS+=" -fno-ident -fpermissive -frecord-gcc-switches"
33 ALLOWED_FLAGS+=" -fdiagnostics*" 33 ALLOWED_FLAGS+=" -fdiagnostics*"
34 ALLOWED_FLAGS+=" -W* -w" 34 ALLOWED_FLAGS+=" -W* -w"
35 35
36 # allow a bunch of flags that negate features / control ABI 36 # allow a bunch of flags that negate features / control ABI
37 ALLOWED_FLAGS+=" -fno-stack-protector* -fabi-version=* \ 37 ALLOWED_FLAGS+=" -fno-stack-protector* -fabi-version=* \
38 -fno-strict-aliasing -fno-bounds-checking -fstrict-overflow \ 38 -fno-strict-aliasing -fno-bounds-check -fno-bounds-checking -fstrict-overflow \
39 -fno-omit-frame-pointer -fno-builtin*" 39 -fno-omit-frame-pointer -fno-builtin*"
40 ALLOWED_FLAGS+=" -mregparm -mno-app-regs -mapp-regs -mno-mmx -mno-sse \ 40 ALLOWED_FLAGS+=" -mregparm -mno-app-regs -mapp-regs -mno-mmx -mno-sse \
41 -mno-sse2 -mno-sse3 -mno-ssse3 -mno-sse4 -mno-sse4.1 -mno-sse4.2 \ 41 -mno-sse2 -mno-sse3 -mno-ssse3 -mno-sse4 -mno-sse4.1 -mno-sse4.2 \
42 -mno-avx -mno-aes -mno-pclmul -mno-sse4a -mno-3dnow -mno-popcnt \ 42 -mno-avx -mno-aes -mno-pclmul -mno-sse4a -mno-3dnow -mno-popcnt \
43 -mno-abm -mips1 -mips2 -mips3 -mips4 -mips32 -mips64 -mips16 -mplt \ 43 -mno-abm -mips1 -mips2 -mips3 -mips4 -mips32 -mips64 -mips16 -mplt \

Legend:
Removed from v.1.205  
changed lines
  Added in v.1.206

  ViewVC Help
Powered by ViewVC 1.1.20