Commit 569651fd by Jan Hubicka Committed by Jan Hubicka

re PR c++/91222 (507.cactuBSSN_r build fails in warn_types_mismatch at…

re PR c++/91222 (507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt.c:1006 since r273571)

	PR c++/91222
	* ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
	namespace types.

From-SVN: r276454
parent d94b1602
2019-10-01 Jan Hubicka <hubicka@ucw.cz>
PR c++/91222
* ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
namespace types.
2019-10-02 Shahab Vahedi <shahab@synopsys.com>
* config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
......
......@@ -986,8 +986,8 @@ warn_types_mismatch (tree t1, tree t2, location_t loc1, location_t loc2)
|| (type_with_linkage_p (TYPE_MAIN_VARIANT (t2))
&& type_in_anonymous_namespace_p (TYPE_MAIN_VARIANT (t2))))
{
if (type_with_linkage_p (TYPE_MAIN_VARIANT (t1))
&& !type_in_anonymous_namespace_p (TYPE_MAIN_VARIANT (t1)))
if (!type_with_linkage_p (TYPE_MAIN_VARIANT (t1))
|| !type_in_anonymous_namespace_p (TYPE_MAIN_VARIANT (t1)))
{
std::swap (t1, t2);
std::swap (loc_t1, loc_t2);
......
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