From: hubicka Date: Sat, 9 Feb 2019 18:01:03 +0000 (+0000) Subject: PR lto/87809 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3528239ead5c62aa856dafdbe7b31389571aa642;p=thirdparty%2Fgcc.git PR lto/87809 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P instead of type_with_linkage. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@268728 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 720ec2ebf611..320832ac2da0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-02-09 Jan Hubicka + + PR lto/87809 + * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P + instead of type_with_linkage. + 2019-02-09 Jan Hubicka PR ipa/88755 diff --git a/gcc/tree.c b/gcc/tree.c index 9e5549945563..3e51a85744cc 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -5152,7 +5152,8 @@ fld_simplified_type_name (tree type) /* Drop TYPE_DECLs in TYPE_NAME in favor of the identifier in the TYPE_DECL if the type doesn't have linkage. this must match fld_ */ - if (type != TYPE_MAIN_VARIANT (type) || ! type_with_linkage_p (type)) + if (type != TYPE_MAIN_VARIANT (type) + || !DECL_ASSEMBLER_NAME_SET_P (TYPE_NAME (type))) return DECL_NAME (TYPE_NAME (type)); return TYPE_NAME (type); }