]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c++/91222 (507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt...
authorJan Hubicka <hubicka@ucw.cz>
Mon, 29 Jul 2019 08:18:38 +0000 (10:18 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 29 Jul 2019 08:18:38 +0000 (08:18 +0000)
PR lto/91222
* ipa-devirt.c (warn_types_mismatch): Compare indentifiers
than INDENTIFIER_POINTER.

From-SVN: r273866

gcc/ChangeLog
gcc/ipa-devirt.c

index c95d59302580023e8855f950c1bc4df651352dd8..24da94a8a50193054ce63563a720b4a9f51499ae 100644 (file)
@@ -1,3 +1,9 @@
+2019-07-28  Jan Hubicka  <hubicka@ucw.cz>
+
+       PR lto/91222
+       * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
+       than INDENTIFIER_POINTER.
+
 2019-07-28  Martin Liska  <mliska@suse.cz>
 
        PR ipa/89330
index 391a6501ada532cf7143fe9d9c143caecb606ec2..418026fcb82397955f855bee18b039687bce44ba 100644 (file)
@@ -1003,7 +1003,7 @@ warn_types_mismatch (tree t1, tree t2, location_t loc1, location_t loc2)
        n2 = DECL_NAME (n2);
       /* Most of the time, the type names will match, do not be unnecesarily
          verbose.  */
-      if (IDENTIFIER_POINTER (n1) != IDENTIFIER_POINTER (n2))
+      if (n1 != n2)
         inform (loc_t1,
                "type %qT defined in anonymous namespace cannot match "
                "type %qT across the translation unit boundary",