diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2020-06-20 22:07:59 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2020-06-20 22:07:59 +0100 |
commit | 06f9083246c2d705520ab82e8bd822fd2428e12f (patch) | |
tree | f697bd59435a0b12306f0b9b8996cfbf0ded07db /c99 | |
parent | gcc-config: finish comment lines (diff) | |
download | gcc-config-06f9083246c2d705520ab82e8bd822fd2428e12f.tar.gz gcc-config-06f9083246c2d705520ab82e8bd822fd2428e12f.tar.bz2 gcc-config-06f9083246c2d705520ab82e8bd822fd2428e12f.zip |
gcc-config: install /usr/bin/c{89,99}, take over from toolchain.eclass
Reported-by: Kent Fredric
Bug: https://bugs.gentoo.org/728722
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'c99')
-rwxr-xr-x | c99 | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -0,0 +1,23 @@ +#!/bin/sh + +# Managed by gcc-config-@PV@ + +# 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 @TOOLCHAIN_PREFIX@gcc -std=c99 -pedantic -U_FORTIFY_SOURCE ${1+"$@"} |