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]

[Patch] Java: Use New Quoting Style in Diagnostics (1/n)


Hi,

  This is the first of a series of patches to convert the 
Java front end to using the new quoting mechanism.
This installment tackles 'parse.y'.

I remove ATTRIBUTE_PRINTF_2 from parse_warning_context()
and issue_warning_error_from_context() as it's not valid
anymore for these functions and rename their parameter
'msg' to 'msgid' in the respective function declaration.

The latter bit is done for yyerror() too.

Note that yyerror() should also be using the new mechanism,
but doesn't, as it cannot interpret %<,%> and %q.

The rest of the patch is just mechanical conversion
to the new quoting style.

Tested on i686-pc-linux-gnu via a bootstrap and examining
the generated error and warning messages for a few cases.

Ok for mainline?

Thanks,
Ranjit.

-- 
Ranjit Mathew          Email: rmathew AT gmail DOT com

Bangalore, INDIA.      Web: http://ranjitmathew.tripod.com/

Attachment: pp2.txt
Description: Text document


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