From: Richard Biener Date: Thu, 5 Sep 2019 11:02:43 +0000 (+0000) Subject: re PR middle-end/90501 (ICE: address taken, but ADDRESSABLE bit not set) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e7414688f16c4c9db2dacbc31da683887b4ba1bd;p=gcc.git re PR middle-end/90501 (ICE: address taken, but ADDRESSABLE bit not set) 2019-09-05 Richard Biener PR middle-end/90501 * tree-inline.c (declare_return_variable): Mark the return slot as addressable after building an address of it. From-SVN: r275401 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cf113192654..4f3d288a880 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-09-05 Richard Biener + + PR middle-end/90501 + * tree-inline.c (declare_return_variable): Mark the return + slot as addressable after building an address of it. + 2019-09-05 Arnaud Charlet * doc/install.texi: Update and clarify requirements to build GNAT. diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 46bbec1acef..b9c1a3b1456 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -3569,6 +3569,7 @@ declare_return_variable (copy_body_data *id, tree return_slot, tree modify_dest, taken by alias analysis. */ gcc_assert (TREE_CODE (return_slot) != SSA_NAME); var = return_slot_addr; + mark_addressable (return_slot); } else {