Fix 2 typos in ipa-devirt.c.
2017-05-16 Martin Liska <mliska@suse.cz> PR ipa/79849. PR ipa/79850. * ipa-devirt.c (warn_types_mismatch): Fix typo. (odr_types_equivalent_p): Likewise. From-SVN: r248089
This commit is contained in:
parent
3fc5147b9b
commit
d8c9bc3627
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
|||
2017-05-16 Martin Liska <mliska@suse.cz>
|
||||
|
||||
PR ipa/79849.
|
||||
PR ipa/79850.
|
||||
* ipa-devirt.c (warn_types_mismatch): Fix typo.
|
||||
(odr_types_equivalent_p): Likewise.
|
||||
|
||||
2017-05-15 Sylvestre Ledru <sylvestre@debian.org>
|
||||
|
||||
plugin.c (try_init_one_plugin): Fix ressource leaks (CID 726637)
|
||||
|
|
|
@ -1227,7 +1227,7 @@ warn_types_mismatch (tree t1, tree t2, location_t loc1, location_t loc2)
|
|||
if (types_odr_comparable (t1, t2, true)
|
||||
&& types_same_for_odr (t1, t2, true))
|
||||
inform (loc_t1,
|
||||
"type %qT itself violate the C++ One Definition Rule", t1);
|
||||
"type %qT itself violates the C++ One Definition Rule", t1);
|
||||
/* Prevent pointless warnings like "struct aa" should match "struct aa". */
|
||||
else if (TYPE_NAME (t1) == TYPE_NAME (t2)
|
||||
&& TREE_CODE (t1) == TREE_CODE (t2) && !loc_t2_useful)
|
||||
|
@ -1574,7 +1574,7 @@ odr_types_equivalent_p (tree t1, tree t2, bool warn, bool *warned,
|
|||
if (DECL_ARTIFICIAL (f1))
|
||||
break;
|
||||
warn_odr (t1, t2, f1, f2, warn, warned,
|
||||
G_("fields has different layout "
|
||||
G_("fields have different layout "
|
||||
"in another translation unit"));
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue