From: Bruce Momjian Date: Tue, 20 Jan 2015 18:02:35 +0000 (-0500) Subject: tools/ccsym: update for modern versions of gcc X-Git-Tag: REL9_5_ALPHA1~890 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f259e71dbe98f653182f0c710143487a0188fbc5;p=postgresql tools/ccsym: update for modern versions of gcc This dumps the predefined preprocessor macros --- diff --git a/src/tools/ccsym b/src/tools/ccsym index bf4a92fafb..972c8433b4 100755 --- a/src/tools/ccsym +++ b/src/tools/ccsym @@ -1,16 +1,4 @@ #!/bin/sh -# src/tools/ccsym - -trap "rm -f /tmp/$$.*" 0 1 2 3 15 -cd /tmp -cat >$$.c <&1` -do - case "$i" in - -D*) echo "$i" | sed 's/^-D//';; - -A*) echo "$i" | sed 's/^-A\(.*\)(\(.*\))/\1=\2/';; - esac -done +# display gcc predefined preprocessor macros +gcc -dM -E - < /dev/null