PR ipa/94445
* ipa-icf-gimple.c (func_checker::compare_gimple_call):
Compare type attributes for gimple_call_fntypes.
+2020-04-03 Martin Liska <mliska@suse.cz>
+
+ PR ipa/94445
+ * ipa-icf-gimple.c (func_checker::compare_gimple_call):
+ Compare type attributes for gimple_call_fntypes.
+
2020-04-02 Sandra Loosemore <sandra@codesourcery.com>
* alias.c (get_alias_set): Fix comment typos.
#include "tree-eh.h"
#include "builtins.h"
#include "cfgloop.h"
+#include "attribs.h"
#include "ipa-icf-gimple.h"
|| (fntype1 && !types_compatible_p (fntype1, fntype2)))
return return_false_with_msg ("call function types are not compatible");
+ if (fntype1 && fntype2 && comp_type_attributes (fntype1, fntype2) != 1)
+ return return_false_with_msg ("different fntype attributes");
+
tree chain1 = gimple_call_chain (s1);
tree chain2 = gimple_call_chain (s2);
if ((chain1 && !chain2)