statements.
* parse.y (java_expand_classes): Ditto.
* lex.c (java_peek_unicode): Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89152
138bc75d-0d04-0410-961f-
82ee72b054a4
+2004-10-16 Hans-Peter Nilsson <hp@bitrange.com>
+
+ * expr.c (expr_add_location): Move declaration to before all
+ statements.
+ * parse.y (java_expand_classes): Ditto.
+ * lex.c (java_peek_unicode): Ditto.
+
2004-10-16 Ranjit Mathew <rmathew@hotmail.com>
* check-init.c: Use %<, %> and %q for quoting in diagnostics,
)
{
tree wfl;
+ static const char *last_file = 0;
+ static tree last_filenode = NULL_TREE;
+
#ifdef USE_MAPPED_LOCATION
wfl = make_node (EXPR_WITH_FILE_LOCATION);
SET_EXPR_LOCATION (wfl, location);
#else
wfl = make_node (EXPR_WITH_FILE_LOCATION);
- static const char *last_file = 0;
- static tree last_filenode = NULL_TREE;
-
EXPR_WFL_SET_LINECOL (wfl, line, col);
if (file != last_file)
{
{
int unicode_escape_p;
java_lexer *lex = ctxp->lexer;
+ int next;
+
if (lex->avail_unicode)
return lex->next_unicode;
- int next;
next = java_read_unicode (lex, &unicode_escape_p);
{
int save_error_count = 0;
static struct parser_ctxt *cur_ctxp = NULL;
+ location_t save_location;
java_parse_abort_on_error ();
if (!(ctxp = ctxp_for_generation))
return;
java_layout_classes ();
java_parse_abort_on_error ();
- location_t save_location = input_location;
+ save_location = input_location;
for (cur_ctxp = ctxp_for_generation; cur_ctxp; cur_ctxp = cur_ctxp->next)
{