aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/parse.c
diff options
context:
space:
mode:
authorAlexandre Petit-Bianco <apbianco@cygnus.com>2000-05-19 16:17:20 +0000
committerTom Tromey <tromey@gcc.gnu.org>2000-05-19 16:17:20 +0000
commitec5bb3cfb0fa99afb261b589bb238e830d341e94 (patch)
treede0e8bd267448ecb228be6d6735c2cbf9ad766d6 /gcc/java/parse.c
parent9429bc4fb581ab7a065a596c1e7d5c201ced3e2c (diff)
downloadgcc-ec5bb3cfb0fa99afb261b589bb238e830d341e94.zip
gcc-ec5bb3cfb0fa99afb261b589bb238e830d341e94.tar.gz
gcc-ec5bb3cfb0fa99afb261b589bb238e830d341e94.tar.bz2
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 <apbianco@cygnus.com> * parse.y (fold_constant_for_init): Let VAR_DECL and FIELD_DECL be processed by the method's switch statement. From-SVN: r34024
Diffstat (limited to 'gcc/java/parse.c')
-rw-r--r--gcc/java/parse.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/java/parse.c b/gcc/java/parse.c
index e6bf159..e7d5c94 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)
{