Commit c16833dc by Martin Liska Committed by Martin Liska

Fix obvious error in handling of error attribute (PR lto/85248).

2018-04-10  Martin Liska  <mliska@suse.cz>

	PR lto/85248
	* lto-symtab.c (lto_symtab_merge_p): Do not check for
	TREE_VALUES of error attributes.

From-SVN: r259274
parent b30ae803
2018-04-10 Martin Liska <mliska@suse.cz>
PR lto/85248
* lto-symtab.c (lto_symtab_merge_p): Do not check for
TREE_VALUES of error attributes.
2018-04-10 Richard Biener <rguenther@suse.de> 2018-04-10 Richard Biener <rguenther@suse.de>
Martin Liska <mliska@suse.cz> Martin Liska <mliska@suse.cz>
......
...@@ -605,10 +605,7 @@ lto_symtab_merge_p (tree prevailing, tree decl) ...@@ -605,10 +605,7 @@ lto_symtab_merge_p (tree prevailing, tree decl)
prev_attr = lookup_attribute ("noreturn", DECL_ATTRIBUTES (prevailing)); prev_attr = lookup_attribute ("noreturn", DECL_ATTRIBUTES (prevailing));
attr = lookup_attribute ("noreturn", DECL_ATTRIBUTES (decl)); attr = lookup_attribute ("noreturn", DECL_ATTRIBUTES (decl));
if ((prev_attr == NULL) != (attr == NULL) if ((prev_attr == NULL) != (attr == NULL))
|| (prev_attr
&& TREE_VALUE (TREE_VALUE (prev_attr))
!= TREE_VALUE (TREE_VALUE (attr))))
{ {
if (symtab->dump_file) if (symtab->dump_file)
fprintf (symtab->dump_file, "Not merging decls; " fprintf (symtab->dump_file, "Not merging decls; "
......
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