aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/parse.c
diff options
context:
space:
mode:
authorPer Bothner <bothner@gcc.gnu.org>1999-03-15 05:09:44 -0800
committerPer Bothner <bothner@gcc.gnu.org>1999-03-15 05:09:44 -0800
commit2c3199bc4a271157f3cdfb71b3de714004c21ee1 (patch)
tree1e599bb20fca228f28e09640dffe0689ba351ff6 /gcc/java/parse.c
parent2728f622015ae0cfdf0461cdc894e6b8745fa708 (diff)
downloadgcc-2c3199bc4a271157f3cdfb71b3de714004c21ee1.zip
gcc-2c3199bc4a271157f3cdfb71b3de714004c21ee1.tar.gz
gcc-2c3199bc4a271157f3cdfb71b3de714004c21ee1.tar.bz2
class.c (make_class): Don't set CLASS_P here (because this function is also called by...
d * class.c (make_class): Don't set CLASS_P here (because this function is also called by build_java_array_type). (push_class): Set CLASS_P here instead. * parse.h (TYPE_CLASS_P): Check for TYPE_ARRAY_P is redundant. * jcf-dump.c (print_access_flags): Take extra parameter to indicate context. If the context is class, perfer "super" over "synchronized". * jcf-write.c (generate_classfile): Don't add ACC_SUPER if interface. * parse.y (create_class): Don't call parser_check_super here; it is not robust. Always wait until later. * parse.y (method_header): For interfaces, set ACC_ABSTRACT (to match what JDK 1.2 does), but don't set ACC_PUBLIC. From-SVN: r25784
Diffstat (limited to 'gcc/java/parse.c')
-rw-r--r--gcc/java/parse.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/gcc/java/parse.c b/gcc/java/parse.c
index 30ecc5f..63e6662 100644
--- a/gcc/java/parse.c
+++ b/gcc/java/parse.c
@@ -5593,17 +5593,8 @@ create_class (flags, id, super, interfaces)
return NULL_TREE;
}
- /* The class is known and exists if there is a decl. Otherwise,
- postpone the operation and do it later. */
- super_decl = IDENTIFIER_CLASS_VALUE (EXPR_WFL_NODE (super));
- if (super_decl)
- {
- parser_check_super (super_decl, decl, id);
- super_decl_type = TREE_TYPE (super_decl);
- }
- else
- super_decl_type =
- register_incomplete_type (JDEP_SUPER, super, decl, NULL_TREE);
+ super_decl_type =
+ register_incomplete_type (JDEP_SUPER, super, decl, NULL_TREE);
}
else if (TREE_TYPE (decl) != object_type_node)
super_decl_type = object_type_node;