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: [PATCH] Support %N$/*N$ style format arguments in GCC diagnostics


Jakub Jelinek <jakub@redhat.com> writes:

> So do you suggest to change the meaning of %H?
> ATM, at the beginning of format string it means setting of the diagnostic
> context to the given location.  In the middle of format string, it causes
> file 'FILE' line LINENO to be printed in the middle of the message.
> Do you suggest that %H anywhere in the string would just set the diagnostic
> context (as well as %J and %+<code with tree>)?

Yes.  If you look in gcc.pot, you'll see that %H and %J currently
appear exclusively at the beginning of the string[1], so this wouldn't
change anything.

zw

[1] $ grep -nH -e '[^"]%[JH]' gcc.pot
gcc.pot:7889:msgid "invalid %%H value"
gcc.pot:7894:msgid "invalid %%J value"
gcc.pot:7992:msgid "invalid operand to %%H/%%L code"
gcc.pot:10560:msgid "invalid %%J code"


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