This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Java: fix crash in Ant
- From: Andrew Haley <aph at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: java-patches at gcc dot gnu dot org
- Date: Mon, 9 Jun 2003 13:59:09 +0100
- Subject: Java: fix crash in Ant
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);
}