This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix devirt2.C testcase
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Jan Hubicka <hubicka at ucw dot cz>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 17 Dec 2013 06:17:13 -0800
- Subject: Re: Fix devirt2.C testcase
- Authentication-results: sourceware.org; auth=none
- References: <20131217110458 dot GB3174 at kam dot mff dot cuni dot cz>
On Tue, Dec 17, 2013 at 3:04 AM, Jan Hubicka <hubicka@ucw.cz> wrote:
> Hi,
> I forgot the following change in my tree. It fixes type consistency sanity
> check in get_polymorphic_call_info. With the change to gimple-fold it is
> now needed to devrirtualize devirt2.C. (previously the bug went latent since
> the old code handled the testcase)
>
> I am re-testing x86_64-linux and will commit it shortly. I apologize for
> breaking the testcase.
>
> Honza
>
> * ipa-devirt.c (get_polymorphic_call_info): Fix offset when
> checking type consistency; do not set bogus outer_type
> when check fails.
>
Does it fix:
FAIL: g++.dg/ipa/devirt-13.C -std=gnu++11 scan-ipa-dump cgraph
"Devirtualizing call"
FAIL: g++.dg/ipa/devirt-13.C -std=gnu++98 scan-ipa-dump cgraph
"Devirtualizing call"
on Linux/x86?
--
H.J.