This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR java/18931: jar -> .so optimization problem
- From: Andrew Haley <aph at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- Date: Mon, 20 Dec 2004 14:16:05 +0000
- Subject: Re: PR java/18931: jar -> .so optimization problem
- References: <200412171514.iBHFEEl3017022@redhat.com>
As requested.
2004-12-20 Andrew Haley <aph@redhat.com>
* typeck.c: Use fold_convert for ints and booleans.
Index: typeck.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/typeck.c,v
retrieving revision 1.74
diff -u -r1.74 typeck.c
--- typeck.c 17 Dec 2004 15:09:11 -0000 1.74
+++ typeck.c 20 Dec 2004 13:03:03 -0000
@@ -130,7 +130,7 @@
if (code == VOID_TYPE)
return build1 (CONVERT_EXPR, type, expr);
if (code == BOOLEAN_TYPE || code == CHAR_TYPE)
- return fold (build1 (CONVERT_EXPR, type, expr));
+ return fold_convert (type, expr);
if (code == INTEGER_TYPE)
{
if ((really_constant_p (expr)