+2001-02-01 Bryce McKinlay <bryce@albatross.co.nz>
+
+ * jvgenmain.c (class_mangling_suffix): Remove unused string.
+ (error): Remove unused function.
+ (main): Don't use "__attribute__ alias" on generated class symbol.
+
2001-01-30 Alexandre Petit-Bianco <apbianco@cygnus.com>
* jcf-parse.c (init_jcf_parse): Added cast to ggc_add_root's last
(resolve_type_during_patch): Layout resolved type.
* typeck.c (lookup_do): Removed unused local.
-2000-01-30 Bryce McKinlay <bryce@albatross.co.nz>
+2001-01-30 Bryce McKinlay <bryce@albatross.co.nz>
* java-tree.h: Remove JTI_INTEGER_NEGATIVE_ONE_NODE.
* decl.c (init_decl_processing): Use integer_minus_one_node, not
integer_negative_one_node.
* expr.c (build_java_binop): Likewise.
-2000-01-24 Jeff Sturm <jeff.sturm@commerceone.com>
+2001-01-24 Jeff Sturm <jeff.sturm@commerceone.com>
* zextract.c (read_zip_archive): Read file_offset before writing
zipd and consequently clobbering the header contents.
static char * do_mangle_classname PARAMS ((const char *string));
-const char class_mangling_suffix[] = "class$";
-
struct obstack name_obstack;
-extern void error PARAMS ((const char *, ...))
- ATTRIBUTE_PRINTF_1;
-
-void
-error VPARAMS ((const char *msgid, ...))
-{
-#ifndef ANSI_PROTOTYPES
- const char *msgid;
-#endif
- va_list ap;
-
- VA_START (ap, msgid);
-
-#ifndef ANSI_PROTOTYPES
- msgid = va_arg (ap, const char *);
-#endif
-
- vfprintf (stderr, msgid, ap);
- va_end (ap);
-}
-
void
gcc_obstack_init (obstack)
struct obstack *obstack;
}
fprintf (stream, " 0\n};\n\n");
- fprintf (stream, "extern int class __attribute__ ((alias (\"%s\")));\n",
- mangled_classname);
+ fprintf (stream, "extern int %s;\n", mangled_classname);
fprintf (stream, "int main (int argc, const char **argv)\n");
fprintf (stream, "{\n");
fprintf (stream, " _Jv_Compiler_Properties = props;\n");
- fprintf (stream, " JvRunMain (&class, argc, argv);\n");
+ fprintf (stream, " JvRunMain (&%s, argc, argv);\n", mangled_classname);
fprintf (stream, "}\n");
if (stream != stdout && fclose (stream) != 0)
{