The following fixes D testsuite ICEs by properly marking a return slot addressable after we built an address of it during inlining.
Bootstrapped / tested on x86_64-unknown-linux-gnu, applied. Richard. 2019-09-05 Richard Biener <rguent...@suse.de> PR middle-end/90501 * tree-inline.c (declare_return_variable): Mark the return slot as addressable after building an address of it. Index: gcc/tree-inline.c =================================================================== --- gcc/tree-inline.c (revision 271282) +++ gcc/tree-inline.c (working copy) @@ -3540,6 +3540,7 @@ declare_return_variable (copy_body_data taken by alias analysis. */ gcc_assert (TREE_CODE (return_slot) != SSA_NAME); var = return_slot_addr; + mark_addressable (return_slot); } else {