aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/lex.c
diff options
context:
space:
mode:
authorAnthony Green <green@redhat.com>2002-09-30 14:57:43 +0000
committerAnthony Green <green@gcc.gnu.org>2002-09-30 14:57:43 +0000
commitacc59b855d7e95215412c2c86a6865595245be36 (patch)
tree4cb01f295ad7fd212fe7d141eec414cf205cef3b /gcc/java/lex.c
parent48ddd46c41cb690543ffc86828d664ce78af6122 (diff)
downloadgcc-acc59b855d7e95215412c2c86a6865595245be36.zip
gcc-acc59b855d7e95215412c2c86a6865595245be36.tar.gz
gcc-acc59b855d7e95215412c2c86a6865595245be36.tar.bz2
Add -fno-assert flag.
From-SVN: r57649
Diffstat (limited to 'gcc/java/lex.c')
-rw-r--r--gcc/java/lex.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/java/lex.c b/gcc/java/lex.c
index d8bcfd9..d690176 100644
--- a/gcc/java/lex.c
+++ b/gcc/java/lex.c
@@ -1604,6 +1604,15 @@ java_lex (java_lval)
SET_LVAL_NODE (null_pointer_node);
return NULL_TK;
+ case ASSERT_TK:
+ if (flag_assert)
+ {
+ BUILD_OPERATOR (kw->token);
+ return kw->token;
+ }
+ else
+ break;
+
/* Some keyword we want to retain information on the location
they where found. */
case CASE_TK:
@@ -1617,7 +1626,6 @@ java_lex (java_lval)
case CATCH_TK:
case THROW_TK:
case INSTANCEOF_TK:
- case ASSERT_TK:
BUILD_OPERATOR (kw->token);
default: