Dumping CPP symbol table stats

Tom Tromey tromey@redhat.com
Fri Feb 26 19:25:00 GMT 2010


>>>>> "Victor" == Victor Norman <vnorman@calvin.edu> writes:

Victor> I would like to tweak cpp to dump some usage stats from its symbol
Victor> table -- like dumping which #defines were not used at all, etc.

In addition to what Ian said, for this particular case, search for
warn_unused_macros in libcpp.  That will show you the implementation of
a similar feature.

Tom



More information about the Gcc mailing list