Always copy flags to new MEM in simplify_shift_const.
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 21 Dec 1994 05:00:26 +0000 (05:00 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 21 Dec 1994 05:00:26 +0000 (05:00 +0000)
From-SVN: r8678

gcc/combine.c

index fb82ea8120466968f3a276cf4c052fbe63458d61..b5bb122ed04f5cb1da2072d4369cf1f80899d78c 100644 (file)
@@ -7630,14 +7630,12 @@ simplify_shift_const (x, code, result_mode, varop, count)
              if (BYTES_BIG_ENDIAN)
                new = gen_rtx (MEM, tmode, XEXP (varop, 0));
              else
-               {
-                 new = gen_rtx (MEM, tmode,
-                                plus_constant (XEXP (varop, 0),
-                                               count / BITS_PER_UNIT));
-                 RTX_UNCHANGING_P (new) = RTX_UNCHANGING_P (varop);
-                 MEM_VOLATILE_P (new) = MEM_VOLATILE_P (varop);
-                 MEM_IN_STRUCT_P (new) = MEM_IN_STRUCT_P (varop);
-               }
+               new = gen_rtx (MEM, tmode,
+                              plus_constant (XEXP (varop, 0),
+                                             count / BITS_PER_UNIT));
+             RTX_UNCHANGING_P (new) = RTX_UNCHANGING_P (varop);
+             MEM_VOLATILE_P (new) = MEM_VOLATILE_P (varop);
+             MEM_IN_STRUCT_P (new) = MEM_IN_STRUCT_P (varop);
              varop = gen_rtx_combine (code == ASHIFTRT ? SIGN_EXTEND
                                       : ZERO_EXTEND, mode, new);
              count = 0;