aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/class.c
diff options
context:
space:
mode:
authorPer Bothner <bothner@gcc.gnu.org>1999-03-15 05:09:32 -0800
committerPer Bothner <bothner@gcc.gnu.org>1999-03-15 05:09:32 -0800
commit10919149c3c46cc7041964ee2d309d360931336d (patch)
tree331d8a0faeead45fd6b4528fac827387144307c3 /gcc/java/class.c
parentb5d51daa7ebfe61e0d7f7d1893f43cc56221da22 (diff)
downloadgcc-10919149c3c46cc7041964ee2d309d360931336d.zip
gcc-10919149c3c46cc7041964ee2d309d360931336d.tar.gz
gcc-10919149c3c46cc7041964ee2d309d360931336d.tar.bz2
class.c (make_class): Don't set CLASS_P here (because this function is also called by...
T * 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: r25782
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r--gcc/java/class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c
index f05cf16..1ab753a 100644
--- a/gcc/java/class.c
+++ b/gcc/java/class.c
@@ -128,7 +128,6 @@ make_class ()
#else
TYPE_BINFO (type) = make_tree_vec (6);
#endif
- CLASS_P (type) = 1;
pop_obstacks ();
return type;
@@ -157,6 +156,7 @@ push_class (class_type, class_name)
int save_lineno = lineno;
tree source_name = identifier_subst (class_name, "", '.', '/', ".java");
push_obstacks (&permanent_obstack, &permanent_obstack);
+ CLASS_P (class_type) = 1;
input_filename = IDENTIFIER_POINTER (source_name);
lineno = 0;
decl = build_decl (TYPE_DECL, class_name, class_type);