diff options
author | Harald van Dijk <truedfx@gentoo.org> | 2009-02-04 18:20:53 +0000 |
---|---|---|
committer | Harald van Dijk <truedfx@gentoo.org> | 2009-02-04 18:20:53 +0000 |
commit | 7e8c7855919d815d527c6620c42db280d52f00d8 (patch) | |
tree | 01b04ad9ee5a7f99f9fa2f9cc535ca58fce356bf /sys-devel/gcc/files | |
parent | Version bump (diff) | |
download | gentoo-2-7e8c7855919d815d527c6620c42db280d52f00d8.tar.gz gentoo-2-7e8c7855919d815d527c6620c42db280d52f00d8.tar.bz2 gentoo-2-7e8c7855919d815d527c6620c42db280d52f00d8.zip |
Aim for conformance when called as c89/c99 (#257299)
Diffstat (limited to 'sys-devel/gcc/files')
-rwxr-xr-x | sys-devel/gcc/files/c89 | 7 | ||||
-rwxr-xr-x | sys-devel/gcc/files/c99 | 9 |
2 files changed, 5 insertions, 11 deletions
diff --git a/sys-devel/gcc/files/c89 b/sys-devel/gcc/files/c89 index d0a3c1e634ee..cee0325f50f1 100755 --- a/sys-devel/gcc/files/c89 +++ b/sys-devel/gcc/files/c89 @@ -6,18 +6,15 @@ # -std=c89 # -std=iso9899:1990 -extra_flag=-std=c89 - for i; do case "$i" in -ansi|-std=c89|-std=iso9899:1990) - extra_flag= ;; -std=*) - echo >&2 "`basename $0` called with non ANSI/ISO C option $i" + echo >&2 "`basename $0` called with non ANSI/ISO C90 option $i" exit 1 ;; esac done -exec gcc $extra_flag ${1+"$@"} +exec gcc -std=c89 -pedantic -U_FORTIFY_SOURCE "$@" diff --git a/sys-devel/gcc/files/c99 b/sys-devel/gcc/files/c99 index 2edf5cd2f00f..c9542095e385 100755 --- a/sys-devel/gcc/files/c99 +++ b/sys-devel/gcc/files/c99 @@ -7,18 +7,15 @@ # -std=iso9899:1999 # -std=iso9899:199x -extra_flag=-std=c99 - for i; do case "$i" in -std=c9[9x]|-std=iso9899:199[9x]) - extra_flag= ;; - -std=*) - echo >&2 "`basename $0` called with non ANSI/ISO C option $i" + -ansi|-std=*) + echo >&2 "`basename $0` called with non ANSI/ISO C99 option $i" exit 1 ;; esac done -exec gcc $extra_flag ${1+"$@"} +exec gcc -std=c99 -pedantic -U_FORTIFY_SOURCE ${1+"$@"} |