[Patch] [3.3 commited] Fix warning

Andrew Pinski pinskia@physics.uc.edu
Wed Dec 10 17:36:00 GMT 2003


This patch fixes a warning that I introduced with my patch to fix PR 
10060 on the 3.3 branch.
The problem was that 3.3 have a different idea of what can be shared.

ChangeLog:
         * emit-rtl.c (copy_rtx_if_shared_1): Fix warning.


Patch:
Index: emit-rtl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/emit-rtl.c,v
retrieving revision 1.303.2.3
diff -u -p -r1.303.2.3 emit-rtl.c
--- emit-rtl.c  8 Dec 2003 17:36:59 -0000       1.303.2.3
+++ emit-rtl.c  10 Dec 2003 17:35:29 -0000
@@ -2642,7 +2642,7 @@ repeat:
          because it looks safe and profitable in one context, but
          in some other context it creates unrecognizable RTL.  */
        if (CONSTANT_ADDRESS_P (XEXP (x, 0)))
-       return x;
+       return;

        break;



More information about the Gcc-patches mailing list