aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/jcf-parse.c
diff options
context:
space:
mode:
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;
}