aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/parse.c2
-rw-r--r--gcc/java/parse.y2
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)
{