I have two simple questions, I hope!  

1.  Is there a set of flags that, when compiling gcc, is meant to
produce no warnings?  I get a surfeit of warnings with my particular
favorite options.  

2.  Are the libgcc functions warning_at() and error_at() intended for
use by all front-ends? As of now, our COBOL front-end formats its own
messages with fprintf(3).  I would like to emulate normal gcc behavior,
where warnings can be turned on and off, and (especially) elevated to
errors with -Werror.  I'm guessing we'd gain access to that
functionality automatically if we engaged with the standard diagnositic
framework, if there is one.  

I'm a little doubtful these are the keys to that kingdom, though.  The
comments regarding location_t and the location database seem very
C-specific.  

--jkl

Reply via email to