* ipa-utils.h (type_with_linkage_p): No longer check for TYPE_STUB_DECL;
it is wrong for forward declarations.
From-SVN: r265460
+2018-10-11 Jan Hubicka <hubicka@ucw.cz>
+
+ * ipa-utils.h (type_with_linkage_p): No longer check for TYPE_STUB_DECL;
+ it is wrong for forward declarations.
+
2018-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
* config/s390/s390.c (s390_check_qrst_address): Add the missing
if (DECL_ASSEMBLER_NAME_SET_P (TYPE_NAME (t)))
return true;
- /* If free lang data was not run check if indeed the type looks like C++
- type with linkage. */
- if (in_lto_p || !TYPE_STUB_DECL (t))
+ if (in_lto_p)
return false;
+ /* We used to check for TYPE_STUB_DECL but that is set to NULL for forward
+ declarations. */
if (!RECORD_OR_UNION_TYPE_P (t) && TREE_CODE (t) != ENUMERAL_TYPE)
return false;