Re: Dumping CPP symbol table stats

2010-02-26 Thread Tom Tromey
> "Victor" == Victor Norman 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 s

Re: Dumping CPP symbol table stats

2010-02-24 Thread Ian Lance Taylor
Victor Norman writes: > I would like to tweak cpp to dump some usage stats from its symbol > table -- like dumping which #defines were not used at all, etc. > > I'm wondering if someone can help me figure out where in the code I > would look to start to do this. libcpp/identifiers.c Ian

Dumping CPP symbol table stats

2010-02-24 Thread Victor Norman
I would like to tweak cpp to dump some usage stats from its symbol table -- like dumping which #defines were not used at all, etc. I'm wondering if someone can help me figure out where in the code I would look to start to do this. (I know that I'll need to add a command-line argument, and I