This is the mail archive of the gcc@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: C/C++: list of macro definitions?


Eljay Love-Jensen wrote:-

> -E -Wp,-dM
> 
> Cool!  Thanks Jakub!

Or just -E -dM
 
> Is there a way to dump out only the UTILIZED (ones that are expanded 
> somewhere) macros?

No.  -Wunused-macros does a bit of the reverse; it tells you which
ones were unused that were also defined in the main file.  3.3 only.

> And can it display where (file & line) the expansion occurs?

No.

Neil.


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