Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
f259e71d
Commit
f259e71d
authored
Jan 20, 2015
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools/ccsym: update for modern versions of gcc
This dumps the predefined preprocessor macros
parent
f32a1fa4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
14 deletions
+2
-14
src/tools/ccsym
src/tools/ccsym
+2
-14
No files found.
src/tools/ccsym
View file @
f259e71d
#!/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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment