summaryrefslogtreecommitdiff
path: root/sys-devel/base-gcc/files/c89
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2015-07-12 01:04:12 +0100
committerV3n3RiX <venerix@rogentos.ro>2015-07-12 01:04:12 +0100
commit1dc2cc1443ef106bf8fd5ec26a0861b5e4cd0e83 (patch)
tree6eefebeb4b3610ceca51b21107cb4f000c8ba05c /sys-devel/base-gcc/files/c89
parentd4212996b6b1051d2bcd84b07167072c2f2e985a (diff)
first draft of our sanely splitted gcc, it works, but there is still some work to do
Diffstat (limited to 'sys-devel/base-gcc/files/c89')
-rwxr-xr-xsys-devel/base-gcc/files/c8920
1 files changed, 20 insertions, 0 deletions
diff --git a/sys-devel/base-gcc/files/c89 b/sys-devel/base-gcc/files/c89
new file mode 100755
index 00000000..cee0325f
--- /dev/null
+++ b/sys-devel/base-gcc/files/c89
@@ -0,0 +1,20 @@
+#! /bin/sh
+
+# Call the appropriate C compiler with options to accept ANSI/ISO C
+# The following options are the same (as of gcc-2.95):
+# -ansi
+# -std=c89
+# -std=iso9899:1990
+
+for i; do
+ case "$i" in
+ -ansi|-std=c89|-std=iso9899:1990)
+ ;;
+ -std=*)
+ echo >&2 "`basename $0` called with non ANSI/ISO C90 option $i"
+ exit 1
+ ;;
+ esac
+done
+
+exec gcc -std=c89 -pedantic -U_FORTIFY_SOURCE "$@"