This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Fix PR lto/84805
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Eric Botcazou <ebotcazou at adacore dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 13 Mar 2018 10:14:48 +0100
- Subject: Re: [patch] Fix PR lto/84805
- Authentication-results: sourceware.org; auth=none
- References: <4113462.IWbXHliYRW@polaris>
On Tue, Mar 13, 2018 at 12:06 AM, Eric Botcazou <ebotcazou@adacore.com> wrote:
> Hi,
>
> this is an ICE in LTO mode on code violating the ODR rule: get_odr_type checks
> that there is a sensible internal order between base, type and derived types
> but this can be easily messed up by incomplete types. Hence the attached
> fixlet (no testcase because the -Wodr warnings have a totally random order).
>
> Tested on x86-64/Linux, OK for the mainline?
Ok.
Richard.
>
> 2018-03-12 Eric Botcazou <ebotcazou@adacore.com>
>
> PR lto/84805
> * ipa-devirt.c (odr_subtypes_equivalent_p): Do not get the ODR type of
> incomplete types.
>
> --
> Eric Botcazou