aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/jcf-parse.c
diff options
context:
space:
mode:
authorAlexandre Petit-Bianco <apbianco@cygnus.com>1998-10-21 08:00:11 +0000
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>1998-10-21 01:00:11 -0700
commit866e9df806177f1ef2e67d261dd93795bb03e061 (patch)
tree8b8c95af7b3a9f48f786854a5aadf0155698ce4b /gcc/java/jcf-parse.c
parentcd916110da125725949ef751f24c97fbe0d82345 (diff)
downloadgcc-866e9df806177f1ef2e67d261dd93795bb03e061.zip
gcc-866e9df806177f1ef2e67d261dd93795bb03e061.tar.gz
gcc-866e9df806177f1ef2e67d261dd93795bb03e061.tar.bz2
class.c (emit_register_classes): Renamed from emit_register_class.
Wed Oct 21 07:54:11 1998 Alexandre Petit-Bianco <apbianco@cygnus.com> * class.c (emit_register_classes): Renamed from emit_register_class. * java-tree.h (emit_register_classes): Prototype renamed from emit_register_class. * jcf-parse.c (yyparse): Call emit_register_classes once before returning. * parse.y (java_expand_classes): No longer register classes. Prevents the generation of multiple static constructor for a compilation unit. From-SVN: r23208
Diffstat (limited to 'gcc/java/jcf-parse.c')
-rw-r--r--gcc/java/jcf-parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c
index fee19c0..3df187f 100644
--- a/gcc/java/jcf-parse.c
+++ b/gcc/java/jcf-parse.c
@@ -777,12 +777,10 @@ yyparse ()
{
case JCF_ZIP:
parse_zip_file_entries ();
- emit_register_class ();
break;
case JCF_CLASS:
jcf_parse (current_jcf);
parse_class_file ();
- emit_register_class ();
break;
case JCF_SOURCE:
parse_source_file (0); /* Parse and generate */
@@ -790,6 +788,8 @@ yyparse ()
}
}
java_expand_classes ();
+ if (! flag_emit_class_files)
+ emit_register_classes ();
return 0;
}