diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2019-07-29 10:18:38 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2019-07-29 08:18:38 +0000 |
commit | 66fafc3bf683405e6fedb4fe18dc09035b0073c2 (patch) | |
tree | be70ba2c7d5f9da11fd771796375aed5cb2b2924 /gcc | |
parent | a8cc00bfd7e15c05b77c8bc9ffc99e523609b6a6 (diff) | |
download | gcc-66fafc3bf683405e6fedb4fe18dc09035b0073c2.zip gcc-66fafc3bf683405e6fedb4fe18dc09035b0073c2.tar.gz gcc-66fafc3bf683405e6fedb4fe18dc09035b0073c2.tar.bz2 |
re PR c++/91222 (507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt.c:1006 since r273571)
PR lto/91222
* ipa-devirt.c (warn_types_mismatch): Compare indentifiers
than INDENTIFIER_POINTER.
From-SVN: r273866
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/ipa-devirt.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c95d593..24da94a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c index 391a650..418026f 100644 --- a/gcc/ipa-devirt.c +++ b/gcc/ipa-devirt.c @@ -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", |