diff options
author | Magnus Granberg <zorry@gentoo.org> | 2013-02-15 03:24:19 +0100 |
---|---|---|
committer | Magnus Granberg <zorry@gentoo.org> | 2013-02-15 03:24:19 +0100 |
commit | 4ed106d8cf1f8bd790a73e79758b08691084b3e0 (patch) | |
tree | 4eb66c0a768f96e08c63f577b70be2b325531a8e /sys-devel/gcc/files/c99 | |
parent | eclass/pax-utils.eclass: cleaned up sanitize-flags code more, thanks Alphat-PC (diff) | |
download | hardened-dev-4ed106d8cf1f8bd790a73e79758b08691084b3e0.tar.gz hardened-dev-4ed106d8cf1f8bd790a73e79758b08691084b3e0.tar.bz2 hardened-dev-4ed106d8cf1f8bd790a73e79758b08691084b3e0.zip |
add gcc-4.8.0 20130210 for testing the piepatchset
Diffstat (limited to 'sys-devel/gcc/files/c99')
-rwxr-xr-x | sys-devel/gcc/files/c99 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sys-devel/gcc/files/c99 b/sys-devel/gcc/files/c99 new file mode 100755 index 00000000..c9542095 --- /dev/null +++ b/sys-devel/gcc/files/c99 @@ -0,0 +1,21 @@ +#! /bin/sh + +# Call the appropriate C compiler with options to accept ANSI/ISO C +# The following options are the same (as of gcc-3.3): +# -std=c99 +# -std=c9x +# -std=iso9899:1999 +# -std=iso9899:199x + +for i; do + case "$i" in + -std=c9[9x]|-std=iso9899:199[9x]) + ;; + -ansi|-std=*) + echo >&2 "`basename $0` called with non ANSI/ISO C99 option $i" + exit 1 + ;; + esac +done + +exec gcc -std=c99 -pedantic -U_FORTIFY_SOURCE ${1+"$@"} |