summaryrefslogtreecommitdiffstats
path: root/funtools/funcalc.sed
blob: d9f3b186973873d033ed2e3f1c2e734a8f9a94d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
# cc <foo.c> 2>&1 | sed -n -f funauto.sed
# Linux gcc (and others)
s/.*[`'‘]\([^)]*\)['’] *undeclared (first use in this function).*/\1/p
# Solaris cc
s/.*undefined symbol: \([^)]*\)/\1/p
# Dec Alpha/OSF cc
s/.*In this statement, "\([^)]*\)" is not declared.*/\1/p
# SGI cc
s/.*The identifier "\([^)]*\)" is undefined.*/\1/p
# Intel icc
s/.*identifier "\([^)]*\)" is undefined.*/\1/p