rtlanal.c (strip_address_mutation): Use SUBREG_REG instead of XEXP.
authorVladimir Makarov <vmakarov@redhat.com>
Mon, 29 Oct 2012 16:44:01 +0000 (16:44 +0000)
committerVladimir Makarov <vmakarov@gcc.gnu.org>
Mon, 29 Oct 2012 16:44:01 +0000 (16:44 +0000)
2012-10-29  Vladimir Makarov  <vmakarov@redhat.com>

* rtlanal.c (strip_address_mutation): Use SUBREG_REG instead of
XEXP.

From-SVN: r192951

gcc/ChangeLog
gcc/rtlanal.c

index b0a8354..3f5fe29 100644 (file)
@@ -1,3 +1,8 @@
+2012-10-29  Vladimir Makarov  <vmakarov@redhat.com>
+
+       * rtlanal.c (strip_address_mutation): Use SUBREG_REG instead of
+       XEXP.
+
 2012-10-29  Uros Bizjak  <ubizjak@gmail.com>
 
        * config/i386/i386.c (ix86_decompose_address): Use simplify_gen_subreg
index bfc58b0..43d4cb8 100644 (file)
@@ -5464,7 +5464,7 @@ strip_address_mutations (rtx *loc, enum rtx_code *outer_code)
                && subreg_lowpart_p (*loc))
        /* (subreg (operator ...) ...) inside and is used for mode
           conversion too.  */
-       loc = &XEXP (*loc, 0);
+       loc = &SUBREG_REG (*loc);
       else
        return loc;
       if (outer_code)