public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] go/100537 - Bootstrap-O3 and bootstrap-debug fail
@ 2021-05-14  2:52 Jiufu Guo
  2021-05-14  7:15 ` Richard Biener
  0 siblings, 1 reply; 11+ messages in thread
From: Jiufu Guo @ 2021-05-14  2:52 UTC (permalink / raw)
  To: gcc-patches; +Cc: guojiufu, wschmidt, rguenther, ian

As discussed in the PR, Richard mentioned the method to
figure out which VAR was not set TREE_ADDRESSABLE, and
then cause this failure.  It is address_expression which
build addr_expr (build_fold_addr_expr_loc), but not set
TREE_ADDRESSABLE.

I drafted this patch with reference the comments from Richard
in this PR, while I'm not quite sure if more thing need to do.
So, please have review, thanks!

Bootstrap and regtest pass on ppc64le. Is this ok for trunk?

Jiufu Guo.

2021-05-14  Richard Biener  <rguenther@suse.de>
	    Jiufu Guo <guojiufu@linux.ibm.com>

	    PR go/100537
	    * go-gcc.cc
	    (Gcc_backend::address_expression): Set TREE_ADDRESSABLE.

---
 gcc/go/go-gcc.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/go/go-gcc.cc b/gcc/go/go-gcc.cc
index 5d9dbb5d068..8ed20a3b479 100644
--- a/gcc/go/go-gcc.cc
+++ b/gcc/go/go-gcc.cc
@@ -1680,6 +1680,7 @@ Gcc_backend::address_expression(Bexpression* bexpr, Location location)
   if (expr == error_mark_node)
     return this->error_expression();
 
+  TREE_ADDRESSABLE (expr) = 1;
   tree ret = build_fold_addr_expr_loc(location.gcc_location(), expr);
   return this->make_expression(ret);
 }
-- 
2.17.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2021-05-24 21:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-14  2:52 [PATCH] go/100537 - Bootstrap-O3 and bootstrap-debug fail Jiufu Guo
2021-05-14  7:15 ` Richard Biener
2021-05-14  7:39   ` guojiufu
2021-05-14  8:21     ` guojiufu
2021-05-17  8:17       ` Richard Biener
2021-05-18  1:18         ` guojiufu
2021-05-18  1:48         ` Ian Lance Taylor
2021-05-18  6:58           ` Richard Biener
2021-05-18 13:14             ` guojiufu
2021-05-20  8:59             ` guojiufu
2021-05-24 21:46               ` Ian Lance Taylor

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).