diff mbox series

Fix PR90501

Message ID nycvar.YFH.7.76.1909051300580.5566@zhemvz.fhfr.qr
State New
Headers show
Series Fix PR90501 | expand

Commit Message

Richard Biener Sept. 5, 2019, 11:01 a.m. UTC
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  <rguenther@suse.de>

	PR middle-end/90501
	* tree-inline.c (declare_return_variable): Mark the return
	slot as addressable after building an address of it.
diff mbox series

Patch

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
 	{