diff options
author | Andrew Haley <aph@cygnus.com> | 1999-02-05 07:58:05 +0000 |
---|---|---|
committer | Andrew Haley <aph@gcc.gnu.org> | 1999-02-05 07:58:05 +0000 |
commit | 93089423bd89eda39fa008bb5a03c269049a47f8 (patch) | |
tree | 3e784417821635063da49b248b5d28e3eba59f15 /gcc/java/class.c | |
parent | 01235b8090859696a66fbd519d5e6b163a43fbf4 (diff) | |
download | gcc-93089423bd89eda39fa008bb5a03c269049a47f8.zip gcc-93089423bd89eda39fa008bb5a03c269049a47f8.tar.gz gcc-93089423bd89eda39fa008bb5a03c269049a47f8.tar.bz2 |
class.c (make_class_data): The superclass of an interface should be null, not class Object.
1999-02-05 Andrew Haley <aph@cygnus.com>
* class.c (make_class_data): The superclass of an interface should
be null, not class Object.
* lex.c (java_lex): Sign extend hex literals.
From-SVN: r25039
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r-- | gcc/java/class.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c index 69fef55..3f2adbd 100644 --- a/gcc/java/class.c +++ b/gcc/java/class.c @@ -1135,7 +1135,8 @@ make_class_data (type) PUSH_FIELD_VALUE (cons, "accflags", build_int_2 (get_access_flags_from_decl (type_decl), 0)); - PUSH_FIELD_VALUE (cons, "superclass", super); + PUSH_FIELD_VALUE (cons, "superclass", + CLASS_INTERFACE (type_decl) ? null_pointer_node : super); PUSH_FIELD_VALUE (cons, "constants", constant_pool_constructor); PUSH_FIELD_VALUE (cons, "methods", build1 (ADDR_EXPR, method_ptr_type_node, methods_decl)); |