gcj/49

Anthony Green green@cygnus.com
Sun Apr 23 10:00:00 GMT 2000


The following reply was made to PR gcj/49; it has been noted by GNATS.

From: Anthony Green <green@cygnus.com>
To: java-gnats@sourceware.cygnus.com, jimb@cygnus.com, apbianco@cygnus.com,
        tromey@cygnus.com
Cc:  
Subject: Re: gcj/49
Date: Sun, 23 Apr 2000 09:52:00 -0700

 I don't have a full patch for this yet. but this is very close.  All
 that's missing is a check to see whether or not we should actually
 emit it.  I think the compiler driver should pass this info down to
 jvgenmain.  Do any of you understand specs will enough to do this?
 
 Index: gcc/java/jvgenmain.c
 ===================================================================
 RCS file: /cvs/gcc/egcs/gcc/java/jvgenmain.c,v
 retrieving revision 1.15
 diff -c -r1.15 jvgenmain.c
 *** jvgenmain.c 2000/01/21 20:57:00 1.15
 --- jvgenmain.c 2000/04/23 16:45:03
 ***************
 *** 155,160 ****
 --- 155,165 ----
       }
     fprintf (stream, "  0\n};\n\n");
 
 +   /* Emit the N_MAIN stab.  */
 +   fprintf (stream, "asm ( \"/* Emit the N_MAIN stab identifying the
 program's `main'\n");
 +   fprintf (stream, "asm ( \".stabs \\\"%s.main\\\", 0x2a, 0, 0, 0 \"
 );\n\n",
 +     classname);
 +
     fprintf (stream, "extern struct Class %s%s;\n",
       class_mangling_prefix, mangled_classname);
     fprintf (stream, "int main (int argc, const char **argv)\n");
 
 
 http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&pr=49&database=java


More information about the Java-prs mailing list