aboutsummaryrefslogtreecommitdiff
path: root/c99
blob: b013510840cc43ba2ab202b6f0b9330b447cd8d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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+"$@"}