diff options
author | Alexandre Petit-Bianco <apbianco@cygnus.com> | 2000-05-19 16:17:20 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2000-05-19 16:17:20 +0000 |
commit | ec5bb3cfb0fa99afb261b589bb238e830d341e94 (patch) | |
tree | de0e8bd267448ecb228be6d6735c2cbf9ad766d6 /gcc | |
parent | 9429bc4fb581ab7a065a596c1e7d5c201ced3e2c (diff) | |
download | gcc-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')
-rw-r--r-- | gcc/java/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/java/parse.c | 2 | ||||
-rw-r--r-- | gcc/java/parse.y | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 26261b6..a486f92 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +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. + 2000-05-19 Tom Tromey <tromey@cygnus.com> * java-tree.h: Added init state enum. 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) { diff --git a/gcc/java/parse.y b/gcc/java/parse.y index c62e841..2ac6409 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) { |