git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f32a1fa)
tools/ccsym: update for modern versions of gcc
2015年1月20日 18:02:35 +0000 (13:02 -0500)
2015年1月20日 18:02:58 +0000 (13:02 -0500)
This dumps the predefined preprocessor macros


diff --git a/src/tools/ccsym b/src/tools/ccsym
index bf4a92fafba8fa06176c7ec60a04f68123835e80..972c8433b4662734391d42b6b888b2b6b699c638 100755 (executable)
--- 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 <<EOF
-extern int foo;
-EOF
-for i in `cc -v -c $$.c 2>&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
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /