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?


On Jun 28, 2000, Bolan Meek <Bolan.Meek@wcom.com> wrote:

> Alexandre Oliva wrote:
>> 
>> On Jun 28, 2000, Bolan Meek <Bolan.Meek@wcom.com> 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


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