Commit 6965fa6d by Richard Biener Committed by Richard Biener

re PR target/89711 (ICE in insert_vi_for_tree, at tree-ssa-structalias.c:2832)

2019-03-14  Richard Biener  <rguenther@suse.de>

	PR target/89711
	* config/i386/i386.c (make_resolver_func): Properly set
	DECL_CONTEXT on the RESULT_DECL.
	* config/rs6000/rs6000.c (make_resolver_func): Likewise.

From-SVN: r269683
parent baa09dc5
2019-03-14 Richard Biener <rguenther@suse.de> 2019-03-14 Richard Biener <rguenther@suse.de>
PR target/89711
* config/i386/i386.c (make_resolver_func): Properly set
DECL_CONTEXT on the RESULT_DECL.
* config/rs6000/rs6000.c (make_resolver_func): Likewise.
2019-03-14 Richard Biener <rguenther@suse.de>
* gimple-pretty-print.c: Include cfgloop.h. * gimple-pretty-print.c: Include cfgloop.h.
(dump_gimple_phi): Adjust. (dump_gimple_phi): Adjust.
(dump_gimple_bb_header): Dump loop header for GIMPLE. (dump_gimple_bb_header): Dump loop header for GIMPLE.
......
...@@ -32572,6 +32572,7 @@ make_resolver_func (const tree default_decl, ...@@ -32572,6 +32572,7 @@ make_resolver_func (const tree default_decl,
} }
/* Build result decl and add to function_decl. */ /* Build result decl and add to function_decl. */
t = build_decl (UNKNOWN_LOCATION, RESULT_DECL, NULL_TREE, ptr_type_node); t = build_decl (UNKNOWN_LOCATION, RESULT_DECL, NULL_TREE, ptr_type_node);
DECL_CONTEXT (t) = decl;
DECL_ARTIFICIAL (t) = 1; DECL_ARTIFICIAL (t) = 1;
DECL_IGNORED_P (t) = 1; DECL_IGNORED_P (t) = 1;
DECL_RESULT (decl) = t; DECL_RESULT (decl) = t;
...@@ -37467,6 +37467,7 @@ make_resolver_func (const tree default_decl, ...@@ -37467,6 +37467,7 @@ make_resolver_func (const tree default_decl,
/* Build result decl and add to function_decl. */ /* Build result decl and add to function_decl. */
tree t = build_decl (UNKNOWN_LOCATION, RESULT_DECL, NULL_TREE, ptr_type_node); tree t = build_decl (UNKNOWN_LOCATION, RESULT_DECL, NULL_TREE, ptr_type_node);
DECL_CONTEXT (t) = decl;
DECL_ARTIFICIAL (t) = 1; DECL_ARTIFICIAL (t) = 1;
DECL_IGNORED_P (t) = 1; DECL_IGNORED_P (t) = 1;
DECL_RESULT (decl) = t; DECL_RESULT (decl) = t;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment