*** empty log message ***
authorRichard Stallman <rms@gnu.org>
Tue, 30 Jun 1992 03:53:40 +0000 (03:53 +0000)
committerRichard Stallman <rms@gnu.org>
Tue, 30 Jun 1992 03:53:40 +0000 (03:53 +0000)
From-SVN: r1359

gcc/fold-const.c

index e1ad1ca..baea8f4 100644 (file)
@@ -2613,7 +2613,10 @@ merge_component_references (code, truth_type, lhs, rhs)
   if (l_const == 0)
     {
       if (ll_bitsize != lr_bitsize || rl_bitsize != rr_bitsize
-         || ll_unsignedp != lr_unsignedp || rl_unsignedp != rr_unsignedp)
+         || ll_unsignedp != lr_unsignedp || rl_unsignedp != rr_unsignedp
+         /* Make sure the two fields on the right
+            correspond to the left without being swapped.  */
+         || ll_bitpos - rl_bitpos != lr_bitpos - rr_bitpos)
        return 0;
 
       first_bit = MIN (lr_bitpos, rr_bitpos);