* Fix 64-bit libjava breakage on Solaris 2/SPARC (PR middle-end/48819)
@ 2011-04-29 19:41 Rainer Orth
0 siblings, 0 replies; only message in thread
From: Rainer Orth @ 2011-04-29 19:41 UTC (permalink / raw)
To: gcc-patches; +Cc: java-patches, Richard Guenther
This patch fixes 350 64-bit libjava execution failures on Solaris
2/SPARC. It was provided and approved by Richard in the PR.
Tested by rebuilding libjava with the patched jc1 on
sparc-sun-solaris2.11. All testsuite failures are now gone.
Installed on mainline.
Rainer
2011-04-29 Richard Guenther <rguenther@suse.de>
PR middle-end/48819
* constants.c (build_constants_constructor): Use ptr_type_node for
temp.
Index: gcc/java/constants.c
===================================================================
--- gcc/java/constants.c (revision 173182)
+++ gcc/java/constants.c (working copy)
@@ -1,6 +1,6 @@
/* Handle the constant pool of the Java(TM) Virtual Machine.
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
- 2007, 2008, 2010 Free Software Foundation, Inc.
+ 2007, 2008, 2010, 2011 Free Software Foundation, Inc.
This file is part of GCC.
@@ -544,10 +544,7 @@
temp <<= ((POINTER_SIZE > 32) ? POINTER_SIZE - 32 : 0);
CONSTRUCTOR_PREPEND_VALUE (t, get_tag_node (outgoing_cpool->tags[i]));
- CONSTRUCTOR_PREPEND_VALUE (d,
- fold_convert (ptr_type_node,
- (build_int_cst (NULL_TREE,
- temp))));
+ CONSTRUCTOR_PREPEND_VALUE (d, build_int_cst (ptr_type_node, temp));
}
break;
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-04-29 19:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-29 19:41 Fix 64-bit libjava breakage on Solaris 2/SPARC (PR middle-end/48819) Rainer Orth
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).