Another issue with diagnostic format-checker

Gabriel Dos Reis gdr@integrable-solutions.net
Sat Jul 19 18:55:00 GMT 2003


"Zack Weinberg" <zack@codesourcery.com> writes:

| Gabriel Dos Reis <gdr@integrable-solutions.net> writes:
| 
| > | Okay, I understand this.  However, this suggests that you intend to
| > | compile files shared between front ends more than once, with different
| > | settings of GCC_DIAG_STYLE. 
| >
| > Not really.  Remember, the whole thing is composed of two parts
| >
| >    1) interface (.h files) translated every time they are included.
| >       These files are also the most shared files.
| >       This is where the attribute declarations are put.
| >
| >    2) implementation (.c files) usually translated once.
| >
| > I'm NOT proposing to translate implementation files multiple times.
| 
| Then I do not see what putting -D switches in the makefile gains you
| over putting #defines in the relevant source files.

It removes the inclusion order dependency and lets each front end say
what its "set" looks like.

-- Gaby



More information about the Gcc mailing list