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
This commit is contained in:
parent
cd916110da
commit
866e9df806
@ -1,3 +1,13 @@
|
||||
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.
|
||||
|
||||
Tue Oct 20 09:15:38 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
|
||||
|
||||
* class.c (is_compiled_class): New local variable
|
||||
|
@ -1557,7 +1557,7 @@ register_class ()
|
||||
which calls registerClass for all the compiled classes. */
|
||||
|
||||
void
|
||||
emit_register_class ()
|
||||
emit_register_classes ()
|
||||
{
|
||||
tree decl = getdecls ();
|
||||
|
||||
|
@ -524,7 +524,7 @@ extern void init_outgoing_cpool PROTO (());
|
||||
extern void make_class_data PROTO ((tree));
|
||||
extern void register_class PROTO (());
|
||||
extern int alloc_name_constant PROTO ((int, tree));
|
||||
extern void emit_register_class PROTO (());
|
||||
extern void emit_register_classes PROTO (());
|
||||
extern void lang_init_source PROTO ((int));
|
||||
|
||||
/* Access flags etc for a method (a FUNCTION_DECL): */
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -7545,8 +7545,6 @@ java_expand_classes ()
|
||||
java_check_final (); /* Check unitialized final */
|
||||
java_parse_abort_on_error ();
|
||||
}
|
||||
if (! flag_emit_class_files)
|
||||
emit_register_class ();
|
||||
}
|
||||
|
||||
/* Wrap non WFL PRIMARY around a WFL and set EXPR_WFL_QUALIFICATION to
|
||||
|
@ -4939,8 +4939,6 @@ java_expand_classes ()
|
||||
java_check_final (); /* Check unitialized final */
|
||||
java_parse_abort_on_error ();
|
||||
}
|
||||
if (! flag_emit_class_files)
|
||||
emit_register_class ();
|
||||
}
|
||||
|
||||
/* Wrap non WFL PRIMARY around a WFL and set EXPR_WFL_QUALIFICATION to
|
||||
|
Loading…
Reference in New Issue
Block a user