public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Alexandre Oliva <aoliva@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc(refs/users/aoliva/heads/testme)] verbosify split loads of rhs too
Date: Thu, 24 Sep 2020 14:43:35 +0000 (GMT)	[thread overview]
Message-ID: <20200924144335.72CC63959E64@sourceware.org> (raw)

https://gcc.gnu.org/g:5d71254dbd020cc3064379377c89356717e910f5

commit 5d71254dbd020cc3064379377c89356717e910f5
Author: Alexandre Oliva <oliva@adacore.com>
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;
     }


             reply	other threads:[~2020-09-24 14:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-24 14:43 Alexandre Oliva [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-09-23 23:24 Alexandre Oliva

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200924144335.72CC63959E64@sourceware.org \
    --to=aoliva@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).