From ec5bb3cfb0fa99afb261b589bb238e830d341e94 Mon Sep 17 00:00:00 2001 From: Alexandre Petit-Bianco Date: Fri, 19 May 2000 16:17:20 +0000 Subject: [PATCH] parse.y (fold_constant_for_init): Let VAR_DECL and FIELD_DECL be processed by the method's switch statement. 2000-04-17 Alexandre Petit-Bianco * parse.y (fold_constant_for_init): Let VAR_DECL and FIELD_DECL be processed by the method's switch statement. From-SVN: r34024 --- gcc/java/ChangeLog | 5 +++++ gcc/java/parse.c | 2 -- gcc/java/parse.y | 2 -- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 26261b67d9c..a486f92c17e 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2000-04-17 Alexandre Petit-Bianco + + * parse.y (fold_constant_for_init): Let VAR_DECL and FIELD_DECL be + processed by the method's switch statement. + 2000-05-19 Tom Tromey * java-tree.h: Added init state enum. diff --git a/gcc/java/parse.c b/gcc/java/parse.c index e6bf159502b..e7d5c94c492 100644 --- a/gcc/java/parse.c +++ b/gcc/java/parse.c @@ -17225,8 +17225,6 @@ fold_constant_for_init (node, context) if (code == INTEGER_CST || code == REAL_CST) return convert (TREE_TYPE (context), node); - if (TREE_TYPE (node) != NULL_TREE && code != VAR_DECL && code != FIELD_DECL) - return NULL_TREE; switch (code) { diff --git a/gcc/java/parse.y b/gcc/java/parse.y index c62e8410a03..2ac64090b32 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -14593,8 +14593,6 @@ fold_constant_for_init (node, context) if (code == INTEGER_CST || code == REAL_CST) return convert (TREE_TYPE (context), node); - if (TREE_TYPE (node) != NULL_TREE && code != VAR_DECL && code != FIELD_DECL) - return NULL_TREE; switch (code) { -- 2.30.2