diff options
Diffstat (limited to 'gcc/java/lex.c')
-rw-r--r-- | gcc/java/lex.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gcc/java/lex.c b/gcc/java/lex.c index 712ffc2c589..d0a8f93e495 100644 --- a/gcc/java/lex.c +++ b/gcc/java/lex.c @@ -108,11 +108,13 @@ java_init_lex (FILE *finput, const char *encoding) if (!wfl_operator) { +#ifndef JC1_LITE #ifdef USE_MAPPED_LOCATION wfl_operator = build_expr_wfl (NULL_TREE, input_location); #else wfl_operator = build_expr_wfl (NULL_TREE, ctxp->filename, 0, 0); #endif +#endif } if (!label_id) label_id = get_identifier ("$L"); @@ -134,7 +136,9 @@ java_init_lex (FILE *finput, const char *encoding) ctxp->package = NULL_TREE; #endif +#ifndef JC1_LITE ctxp->save_location = input_location; +#endif ctxp->java_error_flag = 0; ctxp->lexer = java_new_lexer (finput, encoding); } @@ -1471,7 +1475,6 @@ do_java_lex (YYSTYPE *java_lval) #ifndef JC1_LITE java_lval->operator.token = OCB_TK; java_lval->operator.location = BUILD_LOCATION(); -#endif #ifdef USE_MAPPED_LOCATION if (ctxp->ccb_indent == 1) ctxp->first_ccb_indent1 = input_location; @@ -1479,14 +1482,14 @@ do_java_lex (YYSTYPE *java_lval) if (ctxp->ccb_indent == 1) ctxp->first_ccb_indent1 = input_line; #endif +#endif ctxp->ccb_indent++; return OCB_TK; case '}': + ctxp->ccb_indent--; #ifndef JC1_LITE java_lval->operator.token = CCB_TK; java_lval->operator.location = BUILD_LOCATION(); -#endif - ctxp->ccb_indent--; #ifdef USE_MAPPED_LOCATION if (ctxp->ccb_indent == 1) ctxp->last_ccb_indent1 = input_location; @@ -1494,6 +1497,7 @@ do_java_lex (YYSTYPE *java_lval) if (ctxp->ccb_indent == 1) ctxp->last_ccb_indent1 = input_line; #endif +#endif return CCB_TK; case '[': BUILD_OPERATOR (OSB_TK); |