Initialize type_warnings::dyn_count with a default value (PR ipa/83054).
authorMartin Liska <mliska@suse.cz>
Fri, 12 Jan 2018 08:59:52 +0000 (09:59 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 12 Jan 2018 08:59:52 +0000 (08:59 +0000)
commit53b735889886371868daa0596ab14250eb71f6d6
tree1b51494d2baf0e0cdf695153a215dd57a9ce9340
parentaae9da9bdebeb345aee79125441c16dd94ae70db
Initialize type_warnings::dyn_count with a default value (PR ipa/83054).

2018-01-12  Martin Liska  <mliska@suse.cz>

PR ipa/83054
* ipa-devirt.c (final_warning_record::grow_type_warnings):
New function.
(possible_polymorphic_call_targets): Use it.
(ipa_devirt): Likewise.
2018-01-12  Martin Liska  <mliska@suse.cz>

PR ipa/83054
* g++.dg/warn/pr83054.C: New test.

From-SVN: r256566
gcc/ChangeLog
gcc/ipa-devirt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/pr83054.C [new file with mode: 0644]