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]

Re: Compiler Directive to List Defined Macros?


Franz Sirl wrote:
> 
> At 15:42 28.06.00, Bolan Meek wrote:
> >Greetings:  God bless you.
> >
> >I've searched `info gcc` and the mailing list archives,
> >but have found nothing on this:
> >
> >Is there any compiler directive that will cause a listing
> >of defined macros to be printed to stdout or stderr?
> >A #pragma something, perhaps?
> 
> Try
> 
> gcc -E -ansi -dM - </dev/null
> 
> Franz.

Thanks;  I tried it.  It looks like it supplies pre-defined
macros;  I was hoping for a compiler directive that would
also spit out the macros that have been defined in the
source code, during compilation.

Maybe I should send this in as a 'wishlist' item.

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