* Fix libgcj testsuite regression: stringconst2.java
@ 2006-05-04 14:49 Andrew Haley
0 siblings, 0 replies; only message in thread
From: Andrew Haley @ 2006-05-04 14:49 UTC (permalink / raw)
To: gcc-patches, java-patches
Bryce's enabling indirect dispatch in the libgcj testuite revealed a
regression -- we weren't initializing static fields.
Andrew.
2006-05-04 Andrew Haley <aph@redhat.com>
* class.c (make_field_value): Always build_address_of fdecl if
there is an initializer.
Index: gcc/java/class.c
===================================================================
--- gcc/java/class.c (revision 113252)
+++ gcc/java/class.c (working copy)
@@ -1344,7 +1344,8 @@
{
tree field_address = integer_zero_node;
- if (! flag_indirect_classes && FIELD_STATIC (fdecl))
+ if ((DECL_INITIAL (fdecl) || ! flag_indirect_classes)
+ && FIELD_STATIC (fdecl))
field_address = build_address_of (fdecl);
PUSH_FIELD_VALUE
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-05-04 14:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-04 14:49 Fix libgcj testsuite regression: stringconst2.java Andrew Haley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).