Diagnostic clean ups

Gabriel Dos Reis gdr@codesourcery.com
Wed Jun 5 13:31:00 GMT 2002

Neil Booth <neil@daikokuya.demon.co.uk> writes:

| Gabriel Dos Reis wrote:-
| > 
| > The patch below restructures part of the diagnostic report support
| > routines. Subsequent patches will add some functionalities.  This is a
| > preliminary step.
| Hi Gaby,
| Just curious - what is your final goal?

In the near term, I would like to 

   o get rid of redundant codes (mostly for 
      {error, warning, pedwarn}_with{decl, file_and_line}) -- for
      this I'll introduce a format specifier (%H) for printing or
      indicating a diagnostic 'location'.

   o have other forms of diagnostics (e.g. informative notes that are not
      necessarily warnings or errors)
   o categoryzing diagnostics so that a simple grep can find them
     (Error:, Warning:, Anachronism:, ... see diagnostic.def -- I
     already have a patch for this one).

For the mid term, I want to
   o have diagnostics with carrets

-- Gaby

More information about the Gcc-patches mailing list