From e6a28f26982094a729b36becbe106cab87437905 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Tue, 30 Jun 1992 03:53:40 +0000 Subject: [PATCH] *** empty log message *** From-SVN: r1359 --- gcc/fold-const.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/fold-const.c b/gcc/fold-const.c index e1ad1cac048..baea8f48466 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -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); -- 2.30.2