This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Debugging Macros
- From: "Tom Browder" <tom dot browder at gmail dot com>
- To: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Wed, 23 Jan 2008 06:09:12 -0600
- Subject: Debugging Macros
I'm trying to debug a gcc frontend (cobol for gcc) and get errors such as:
../../gcctrunk_with_cobol/gcc/cobol/cobcbei.c:462: error: invalid
application of 'sizeof' to incomplete type 'struct lang_identifier'
../../gcctrunk_with_cobol/gcc/cobol/cobcbei.c:462: error: 'getdecls'
undeclared here (not in a function)
../../gcctrunk_with_cobol/gcc/cobol/cobcbei.c:468: error: conflicting
types for 'tree_code_type'
which come from nested macros in gcc code.
Is there an easy way (such as defining an environment variable in the
build environment) to get the gcc build system to show the
preprocessed code to help backtrack the problem?
If not, any ideas to avoid laborious file-at-a-time handling?
Thanks.
-Tom