Re: [PATCH] Refactor IPA devirt a bit.

2019-12-10 Thread Jan Hubicka
> > > > 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

Re: [PATCH] Refactor IPA devirt a bit.

2019-12-10 Thread Martin Liška
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

Re: [PATCH] Refactor IPA devirt a bit.

2019-12-09 Thread Richard Sandiford
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

Re: [PATCH] Refactor IPA devirt a bit.

2019-12-02 Thread Jan Hubicka
> > Sure, I'm sending updated version of the patch. > > Ready for trunk now? OK, thanks! Honza

Re: [PATCH] Refactor IPA devirt a bit.

2019-12-02 Thread Martin Liška
On 12/2/19 11:50 AM, Jan Hubicka wrote: 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: 2

Re: [PATCH] Refactor IPA devirt a bit.

2019-12-02 Thread Jan Hubicka
> 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