From: Jan Hubicka Date: Fri, 12 Oct 2018 02:40:17 +0000 (+0200) Subject: re PR target/87156 (ICE building libstdc++ for mips64) X-Git-Tag: basepoints/gcc-10~3728 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97ae2126cac5a3aa2fbfa86954c08b463e1e3c6c;p=thirdparty%2Fgcc.git re PR target/87156 (ICE building libstdc++ for mips64) PR target/87156 * cgraphclones.c (cgraph_node::create_version_clone_with_body): Set new_decl virtual flag to zero. From-SVN: r265074 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index de3f30c749a3..f8d7217c363f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-10-11 Jan Hubicka + + PR target/87156 + * cgraphclones.c (cgraph_node::create_version_clone_with_body): + Set new_decl virtual flag to zero. + 2018-10-11 Martin Sebor PR middle-end/87593 diff --git a/gcc/cgraphclones.c b/gcc/cgraphclones.c index 2af45bd4fecf..189cb31a5dc8 100644 --- a/gcc/cgraphclones.c +++ b/gcc/cgraphclones.c @@ -968,6 +968,8 @@ cgraph_node::create_version_clone_with_body SET_DECL_ASSEMBLER_NAME (new_decl, DECL_NAME (new_decl)); SET_DECL_RTL (new_decl, NULL); + DECL_VIRTUAL_P (new_decl) = 0; + /* When the old decl was a con-/destructor make sure the clone isn't. */ DECL_STATIC_CONSTRUCTOR (new_decl) = 0; DECL_STATIC_DESTRUCTOR (new_decl) = 0;