3 # We expect warning options for gcc as arguments and return the ones which are
4 # accepted by the given gcc.
10 # make sure we do not use some locale ....
11 export LANG=C LC_ALL=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_NUMERIC=C
16 -[fWm]?*) OPTS="$OPTS $param";;
17 *) echo "Ignoring $param" >&2
22 $CC $OPTS -x c -o /dev/null - 2>&1 <<- EOF
32 *ld:\ unrecognized\ *option\ \'*)
39 # if we come here, we have in $opt the option to remove. and
40 # we remove all instances. And we save agoinst leading "-"
44 -Wl,$opt) : echo "Removed $o" >&2;;
45 *) NEW_OPTS="$NEW_OPTS $o";;
53 testcompile | parsetest