PR java/18931: jar -> .so optimization problem
Andrew Haley
aph@redhat.com
Tue Dec 21 00:52:00 GMT 2004
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)
More information about the Java-patches
mailing list