This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: add "%J" for diagnostics (Redux. Positional format specifier for diagnostic)


Richard Henderson <rth@redhat.com> writes:

| On Tue, Sep 23, 2003 at 07:32:56AM +0900, Chiaki wrote:
| > The code which I think is missing is NOT in diagnostic.c but
| > in pretty-print.c: Namely  shouldn't we add
| > case 'J': before (or immediately after)
| > case 'H' in pp_base_format_text() in pretty-print.c?

No.

| Perhaps.  I don't think this can ever be used, due to the 
| bits in diagnostic.c that discards text up to the %H.
| Which is perhaps another bug.

why do you think it would be a bug?  %H inside a texte is hanlded as

  file <filename, line <line number>


%J as I understand it is used to change the location prefix, therefore
it cannot appear inside a text.  Probably a comment to that effect
should be added.

-- Gaby


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