ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about mismatch between...
authorJan Hubicka <hubicka@ucw.cz>
Sun, 10 May 2015 21:58:53 +0000 (23:58 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 10 May 2015 21:58:53 +0000 (21:58 +0000)
commitad5bc3248e147212a972d5d4a7fe4d202abebf27
treeda7dcb0b5504106093eec4cca9a7a1df5e8ec8c5
parent15296d46dec964f4f2fea572c183462dbd96e576
ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about mismatch between C and C++ type...

* ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
mismatch between C and C++ type; compoare correctly ARG_TYPES
for non-prototypes and output correctly parameter index for METHOD_TYPE.
(odr_types_equivalent_p): Fix wording of warning about attributes;
it is OK to match prototype and non-prototype.

From-SVN: r222985
gcc/ChangeLog
gcc/ipa-devirt.c