Another issue with diagnostic format-checker

Zack Weinberg zack@codesourcery.com
Sat Jul 19 19:31:00 GMT 2003


Gabriel Dos Reis <gdr@integrable-solutions.net> writes:

> | > It removes the inclusion order dependency and lets each front end say
> | > what its "set" looks like.
> | 
> | So does putting #defines in the relevant source files.
>
> No, it does not. See previous discussion with Kaveh.

Your assertion is a contradiction in terms, because -DFOO=bar is
precisely equivalent to "#define FOO bar" appearing on the first line
of the source file.  The only reason to prefer -DFOO=bar is if the
value of 'bar' is determined by the Makefile, but you have said that
it is not.

zw



More information about the Gcc mailing list