Java: fix crash in Ant
Andrew Haley
aph@redhat.com
Mon Jun 9 12:59:00 GMT 2003
This fixes a crash when executing Ant on AMD 64.
Andrew.
2003-06-05 Andrew Haley <aph@redhat.com>
* resource.c (write_resource_constructor): Use expand_expr to
generate the address of the label attached to a resource.
*** gcc/java/resource.c.orig 2003-06-05 11:19:45.000000000 -0400
--- gcc/java/resource.c 2003-06-05 11:18:51.000000000 -0400
*************** The Free Software Foundation is independ
*** 41,45 ****
#include "stdio.h"
#include "target.h"
!
/* DOS brain-damage */
--- 41,45 ----
#include "stdio.h"
#include "target.h"
! #include "expr.h"
/* DOS brain-damage */
*************** write_resource_constructor (void)
*** 133,139 ****
iter = TREE_CHAIN (iter))
{
- const char *name = IDENTIFIER_POINTER (DECL_NAME (TREE_VALUE (iter)));
emit_library_call (registerResource_libfunc, 0, VOIDmode, 1,
! gen_rtx (SYMBOL_REF, Pmode, name),
Pmode);
}
--- 133,139 ----
iter = TREE_CHAIN (iter))
{
emit_library_call (registerResource_libfunc, 0, VOIDmode, 1,
! expand_expr (build_address_of (TREE_VALUE (iter)),
! 0, Pmode, 0),
Pmode);
}
More information about the Java-patches
mailing list