From 2a15bb4c21792825ebc98028bbcfff4bb76230eb Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 24 Dec 2018 15:36:46 +0000 Subject: import the toolchain from gentoo tree, increase revisions so they cannot beat us --- sys-devel/gcc/files/c99 | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 sys-devel/gcc/files/c99 (limited to 'sys-devel/gcc/files/c99') diff --git a/sys-devel/gcc/files/c99 b/sys-devel/gcc/files/c99 new file mode 100644 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+"$@"} -- cgit v1.2.3