From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexandre Oliva To: Bolan.Meek@wcom.com Cc: bolan@koyote.com, Franz Sirl , gcc@gcc.gnu.org Subject: Re: Compiler Directive to List Defined Macros? Date: Wed, 28 Jun 2000 08:14:00 -0000 Message-id: References: <4.3.2.7.2.20000628162558.03ab8100@mail.lauterbach.com> <395A0C74.CBE4F7C1@wcom.com> <395A1394.FECEE76A@wcom.com> X-SW-Source: 2000-06/msg00726.html On Jun 28, 2000, Bolan Meek wrote: > Alexandre Oliva wrote: >> >> On Jun 28, 2000, Bolan Meek wrote: >> >> > 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. >> >> Check the manual (info gcc). Such an option exists. > OK! Search number two coming up! Actually, Franz had already given you the option name (-dM), but I had failed to notice it. He just didn't mention that you could feed gcc -E your source file, instead of telling it to read from `- < /dev/null'. -- Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/ Red Hat GCC Developer aoliva@{cygnus.com, redhat.com} CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Free Software Evangelist *Please* write to mailing lists, not to me