From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id 72CC63959E64; Thu, 24 Sep 2020 14:43:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 72CC63959E64 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Alexandre Oliva To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/aoliva/heads/testme)] verbosify split loads of rhs too X-Act-Checkin: gcc X-Git-Author: Alexandre Oliva X-Git-Refname: refs/users/aoliva/heads/testme X-Git-Oldrev: 4a00e09c155303faf76a3d21f9ab89e0540d9b23 X-Git-Newrev: 5d71254dbd020cc3064379377c89356717e910f5 Message-Id: <20200924144335.72CC63959E64@sourceware.org> Date: Thu, 24 Sep 2020 14:43:35 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Sep 2020 14:43:35 -0000 https://gcc.gnu.org/g:5d71254dbd020cc3064379377c89356717e910f5 commit 5d71254dbd020cc3064379377c89356717e910f5 Author: Alexandre Oliva Date: Wed Sep 23 20:12:52 2020 -0300 verbosify split loads of rhs too Diff: --- gcc/fold-const.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 817d4f9010d..fc64a5a823f 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -6842,8 +6842,6 @@ fold_truth_andor_1 (location_t loc, enum tree_code code, tree truth_type, && lr_bitpos >= 0 && rr_bitpos >= 0))); - tree orig_lhs = lhs, orig_rhs = rhs; - int parts = 1; tree ld_arg[2][2]; HOST_WIDE_INT bitpos[2][2]; @@ -7014,12 +7012,15 @@ fold_truth_andor_1 (location_t loc, enum tree_code code, tree truth_type, *separatep = cmp[1]; } - if (report) + if (separatep && *separatep) + inform (loc, "merged sep extra %qE and %qE into %qE and %qE", + lhs, rhs, result, *separatep); + else if (report) inform (loc, "merged nc extra %qE and %qE into %qE", - orig_lhs, orig_rhs, result); + lhs, rhs, result); else if (l_xor || r_xor) inform (loc, "merged extra %qE and %qE into %qE", - orig_lhs, orig_rhs, result); + lhs, rhs, result); return result; }