]> gcc.gnu.org Git - gcc.git/commitdiff
Fix obvious error in handling of error attribute (PR lto/85248).
authorMartin Liska <mliska@suse.cz>
Tue, 10 Apr 2018 13:52:23 +0000 (15:52 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 10 Apr 2018 13:52:23 +0000 (13:52 +0000)
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

gcc/lto/ChangeLog
gcc/lto/lto-symtab.c

index 2c9c7bff09a6ea1c1179c2382b347ad6cf717414..75a1d1ca807a1e89274e6e8a13c40fee08ba7c35 100644 (file)
@@ -1,3 +1,9 @@
+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>
            Martin Liska  <mliska@suse.cz>
 
index 473c0d0b5af1071f69ad8c1eaadb48bf790b0657..37c4f45eb0b9810961325c850b71e954cfcc1e9e 100644 (file)
@@ -605,10 +605,7 @@ lto_symtab_merge_p (tree prevailing, tree decl)
 
       prev_attr = lookup_attribute ("noreturn", DECL_ATTRIBUTES (prevailing));
       attr = lookup_attribute ("noreturn", DECL_ATTRIBUTES (decl));
-      if ((prev_attr == NULL) != (attr == NULL)
-         || (prev_attr
-             && TREE_VALUE (TREE_VALUE (prev_attr))
-                != TREE_VALUE (TREE_VALUE (attr))))
+      if ((prev_attr == NULL) != (attr == NULL))
        {
           if (symtab->dump_file)
            fprintf (symtab->dump_file, "Not merging decls; "
This page took 0.078829 seconds and 5 git commands to generate.