This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Compiler Directive to List Defined Macros?
- To: Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>
- Subject: Re: Compiler Directive to List Defined Macros?
- From: Bolan Meek <Bolan dot Meek at wcom dot com>
- Date: Wed, 28 Jun 2000 09:32:20 -0500
- Cc: bolan at koyote dot com, gcc at gcc dot gnu dot org
- Organization: K-Force/Sarcom/MCI-WorldCom
- References: <4.3.2.7.2.20000628162558.03ab8100@mail.lauterbach.com>
- Reply-to: Bolan dot Meek at wcom dot com, bolan at koyote dot com
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.