From 629d4b4db8204ee836367f683e5450015ee4034d Mon Sep 17 00:00:00 2001 From: Alexandre Petit-Bianco Date: Sat, 8 Jul 2000 03:35:20 +0000 Subject: jcf-write.c (generate_classfile): Properly install the ConstantValue attribute and the initial value constant... 2000-07-07 Alexandre Petit-Bianco * 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 --- gcc/java/parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/java/parse.c') 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); -- cgit v1.1