From 6965fa6db5b9755aff7d65084b3904fd04d717a8 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 14 Mar 2019 14:05:26 +0000 Subject: [PATCH] re PR target/89711 (ICE in insert_vi_for_tree, at tree-ssa-structalias.c:2832) 2019-03-14 Richard Biener 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 --- gcc/ChangeLog | 7 +++++++ gcc/config/i386/i386.c | 1 + gcc/config/rs6000/rs6000.c | 1 + 3 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 58c8a28f6aa..0c4f57f8441 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2019-03-14 Richard Biener + + 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 * gimple-pretty-print.c: Include cfgloop.h. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 1f94a45909d..783a810437b 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -32572,6 +32572,7 @@ make_resolver_func (const tree default_decl, } /* Build result decl and add to function_decl. */ t = build_decl (UNKNOWN_LOCATION, RESULT_DECL, NULL_TREE, ptr_type_node); + DECL_CONTEXT (t) = decl; DECL_ARTIFICIAL (t) = 1; DECL_IGNORED_P (t) = 1; DECL_RESULT (decl) = t; diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index a21f4f71727..14d39ba8420 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -37467,6 +37467,7 @@ make_resolver_func (const tree default_decl, /* Build result decl and add to function_decl. */ tree t = build_decl (UNKNOWN_LOCATION, RESULT_DECL, NULL_TREE, ptr_type_node); + DECL_CONTEXT (t) = decl; DECL_ARTIFICIAL (t) = 1; DECL_IGNORED_P (t) = 1; DECL_RESULT (decl) = t; -- 2.30.2