This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PR java/18931: jar -> .so optimization problem


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]