diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2018-11-08 14:57:47 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2018-11-08 14:57:47 +0000 |
commit | 67124cb62dd566664aa53183821957fa97b27e54 (patch) | |
tree | 9cd4ec578ca89d0ce79be9d3528d1b03b49e0144 /gcc/cgraphclones.c | |
parent | 212755ff9137bcd3975e02f4936c96bdb7eaf709 (diff) | |
download | gcc-67124cb62dd566664aa53183821957fa97b27e54.zip gcc-67124cb62dd566664aa53183821957fa97b27e54.tar.gz gcc-67124cb62dd566664aa53183821957fa97b27e54.tar.bz2 |
re PR middle-end/87916 (ICE in dwarf2out_abstract_function, at dwarf2out.c:22479 since r264943)
PR middle-end/87916
* cgraphclones.c (duplicate_thunk_for_node): Also set DECL_IGNORED_P.
From-SVN: r265916
Diffstat (limited to 'gcc/cgraphclones.c')
-rw-r--r-- | gcc/cgraphclones.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cgraphclones.c b/gcc/cgraphclones.c index e17959c..0fbc7a9 100644 --- a/gcc/cgraphclones.c +++ b/gcc/cgraphclones.c @@ -321,6 +321,10 @@ duplicate_thunk_for_node (cgraph_node *thunk, cgraph_node *node) "artificial_thunk"); SET_DECL_ASSEMBLER_NAME (new_decl, DECL_NAME (new_decl)); + /* We need to force DECL_IGNORED_P because the new thunk is created after + early debug was run. */ + DECL_IGNORED_P (new_decl) = 1; + new_thunk = cgraph_node::create (new_decl); set_new_clone_decl_and_node_flags (new_thunk); new_thunk->definition = true; |