Commit 9a97772f by Jan Hubicka Committed by Jan Hubicka

ipa-utils.h (type_with_linkage_p): No longer check for TYPE_STUB_DECL; it is…

ipa-utils.h (type_with_linkage_p): No longer check for TYPE_STUB_DECL; it is wrong for forward declarations.

	* ipa-utils.h (type_with_linkage_p): No longer check for TYPE_STUB_DECL;
	it is wrong for forward declarations.

From-SVN: r265460
parent 04193ea0
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
......@@ -193,10 +193,10 @@ type_with_linkage_p (const_tree t)
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment