diff options
author | Alexandre Petit-Bianco <apbianco@cygnus.com> | 2000-07-08 03:35:20 +0000 |
---|---|---|
committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 2000-07-07 20:35:20 -0700 |
commit | 629d4b4db8204ee836367f683e5450015ee4034d (patch) | |
tree | 5f831f1a2e5f374c3ad4969dc34df75ec8eab2fa /gcc/java/parse.c | |
parent | cf00a885103d939b2175adc8918908a3b6f211d2 (diff) | |
download | gcc-629d4b4db8204ee836367f683e5450015ee4034d.zip gcc-629d4b4db8204ee836367f683e5450015ee4034d.tar.gz gcc-629d4b4db8204ee836367f683e5450015ee4034d.tar.bz2 |
jcf-write.c (generate_classfile): Properly install the ConstantValue attribute and the initial value constant...
2000-07-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
* jcf-write.c (generate_classfile): Properly install the
ConstantValue attribute and the initial value constant pool index
on string constants.
* parse.y (java_complete_lhs): Keep DECL_INITIAL when emitting
class files.
(http://gcc.gnu.org/ml/gcc-patches/2000-07/msg00233.html)
From-SVN: r34921
Diffstat (limited to 'gcc/java/parse.c')
-rw-r--r-- | gcc/java/parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/java/parse.c b/gcc/java/parse.c index 14c4375..5133edf 100644 --- a/gcc/java/parse.c +++ b/gcc/java/parse.c @@ -13802,7 +13802,6 @@ java_complete_lhs (node) case NEW_CLASS_EXPR: case CALL_EXPR: /* Complete function's argument(s) first */ - if (complete_function_arguments (node)) return error_mark_node; else @@ -13847,7 +13846,8 @@ java_complete_lhs (node) (type == string_ptr_type_node && ! flag_emit_class_files)) return empty_stmt_node; } - DECL_INITIAL (nn) = NULL_TREE; + if (! flag_emit_class_files) + DECL_INITIAL (nn) = NULL_TREE; } wfl_op2 = TREE_OPERAND (node, 1); |