This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Debugging Macros


On Jan 23, 2008 6:13 AM, Andrew Haley <aph@redhat.com> wrote:
> Tom Browder wrote:
...
> > 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?
...
> Set your CC when running make: "make CC='gcc -g -save-temps -Wp,-dD ...'
>
> This will give you all macro definitions, expanded in .i files.
>
> For extra credit, run the .i files through GNU indent.

Thanks, Andrew.

-Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]