> >
> > 2019-12-09 Richard Sandiford
> >
> > gcc/
> > * ipa-utils.h (get_odr_name_for_type): Check for a TYPE_DECL.
> > * ipa-devirt.c (warn_types_mismatch): Don't call xstrdup for the
> > second demangled name.
> >
> > gcc/testsuite/
> > * gcc.dg/lto/tag-1_0.c, gcc.dg/lto/tag
On 12/9/19 1:24 PM, Richard Sandiford wrote:
Martin Liška writes:
diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c
index a884a465a5d..e53461b1f5c 100644
--- a/gcc/ipa-devirt.c
+++ b/gcc/ipa-devirt.c
@@ -1036,20 +1036,13 @@ warn_types_mismatch (tree t1, tree t2, location_t loc1,
location_t loc2
Martin Liška writes:
> diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c
> index a884a465a5d..e53461b1f5c 100644
> --- a/gcc/ipa-devirt.c
> +++ b/gcc/ipa-devirt.c
> @@ -1036,20 +1036,13 @@ warn_types_mismatch (tree t1, tree t2, location_t
> loc1, location_t loc2)
>/* If types have mangled ODR
>
> Sure, I'm sending updated version of the patch.
>
> Ready for trunk now?
OK, thanks!
Honza
from it.
>From 6126f8f44106cd779a2d77a4755c68bcf6b9fa20 Mon Sep 17 00:00:00 2001
From: Martin Liska
Date: Mon, 2 Dec 2019 09:59:26 +0100
Subject: [PATCH] Refactor IPA devirt a bit.
gcc/ChangeLog:
2019-12-02 Martin Liska
* ipa-devirt.c (warn_types_mismatch): Use get_odr_name_
> Hello.
>
> The patches makes a small refactoring in ipa-devirt.c and comes up
> with a handy debugging function debug_tree_odr_name.
>
> Patch can bootstrap on x86_64-linux-gnu and survives regression tests.
>
> Ready to be installed?
> Thanks,
> Martin
>
> gcc/ChangeLog:
>
> 2019-12-02 Mar
Hello.
The patches makes a small refactoring in ipa-devirt.c and comes up
with a handy debugging function debug_tree_odr_name.
Patch can bootstrap on x86_64-linux-gnu and survives regression tests.
Ready to be installed?
Thanks,
Martin
gcc/ChangeLog:
2019-12-02 Martin Liska
* ipa-