From e7414688f16c4c9db2dacbc31da683887b4ba1bd Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 5 Sep 2019 11:02:43 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/tree-inline.c | 1 + 2 files changed, 7 insertions(+) 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 { -- 2.30.2