aboutsummaryrefslogtreecommitdiff
path: root/c89
blob: 34dcd606ec52b0efd2c26061dedb64a066a36d36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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-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 @TOOLCHAIN_PREFIX@gcc -std=c89 -pedantic -U_FORTIFY_SOURCE "$@"