This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix PR90501


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.

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
 	{


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]