summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsys-devel/gcc/files/c897
-rwxr-xr-xsys-devel/gcc/files/c999
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+"$@"}