This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: java class registration via .jcr section
- To: Anthony Green <green at redhat dot com>
- Subject: Re: Patch: java class registration via .jcr section
- From: Richard Henderson <rth at redhat dot com>
- Date: Sat, 4 Aug 2001 01:30:35 -0700
- Cc: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- References: <200108040305.XAA10064@peach.cygnus.co.uk>
On Fri, Aug 03, 2001 at 11:05:02PM -0400, green@peach.cygnus.co.uk wrote:
> +asm (JCR_SECTION_ASM_OP); /* cc1 doesn't know that we are switching! */
> +STATIC void *__JCR_LIST__[1] __attribute__ ((__unused__)) = { 0 };
No. Use __attribute__((section(JCR_SECTION_NAME)));
Likewise for __JCR_END__.
> + for (jcr = __JCR_END__ - 1; *jcr != NULL; jcr--)
> + _Jv_RegisterClass (*jcr);
You've defined _Jv_RegisterClass weak, but I don't see you testing
it non-null.
r~