diff options
author | Alexandre Petit-Bianco <apbianco@redhat.com> | 2001-06-27 13:38:20 -0700 |
---|---|---|
committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 2001-06-27 13:38:20 -0700 |
commit | 4a70e37e7541cfcdfa7b96df83ed1ef54787133b (patch) | |
tree | b08bb204fb5c50109b30f6039c008d246dbb6174 /gcc/java/class.c | |
parent | af27aff6ae1dbbe73ecf2b24dac6b0b1587413b5 (diff) | |
download | gcc-4a70e37e7541cfcdfa7b96df83ed1ef54787133b.zip gcc-4a70e37e7541cfcdfa7b96df83ed1ef54787133b.tar.gz gcc-4a70e37e7541cfcdfa7b96df83ed1ef54787133b.tar.bz2 |
class.c (set_super_info): Call `set_class_decl_access_flags.'
2001-06-27 Alexandre Petit-Bianco <apbianco@redhat.com>
* class.c (set_super_info): Call `set_class_decl_access_flags.'
(set_class_decl_access_flags): New function.
* java-tree.h (set_class_decl_access_flags): New prototype.
* jcf-parse.c (handle_innerclass_attribute): Read and set access flags.
(parse_class_file): New local `decl_max_locals.' Take wide types
into account to compute DECL_MAX_LOCALS.
* parse.y (type_import_on_demand_declaration:): Ignore duplicate
imports on demand.
(http://gcc.gnu.org/ml/gcc-patches/2001-06/msg01718.html )
From-SVN: r43618
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r-- | gcc/java/class.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c index 894671c..45bb6df 100644 --- a/gcc/java/class.c +++ b/gcc/java/class.c @@ -394,6 +394,14 @@ set_super_info (access_flags, this_class, super_class, interfaces_count) CLASS_HAS_SUPER (this_class) = 1; } + set_class_decl_access_flags (access_flags, class_decl); +} + +void +set_class_decl_access_flags (access_flags, class_decl) + int access_flags; + tree class_decl; +{ if (access_flags & ACC_PUBLIC) CLASS_PUBLIC (class_decl) = 1; if (access_flags & ACC_FINAL) CLASS_FINAL (class_decl) = 1; if (access_flags & ACC_SUPER) CLASS_SUPER (class_decl) = 1; |