This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch: java class registration via .jcr section


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]