Re: [PR c++/83667] Fix tree_dump ICE

2018-01-04 Thread Rainer Orth
Hi Nathan, > On 01/04/2018 03:55 AM, Rainer Orth wrote: >> Hi Nathan, >> >>> This fixes a tree dumping ICE involving static thunk fns. Copying the >>> thunked-to fn's context suffices. >> > >> The dump has >> >> IPA function summary for void c::*.LLTHUNK0(...)/1 > > thanks. > > does this patch wo

Re: [PR c++/83667] Fix tree_dump ICE

2018-01-04 Thread Nathan Sidwell
On 01/04/2018 03:55 AM, Rainer Orth wrote: Hi Nathan, This fixes a tree dumping ICE involving static thunk fns. Copying the thunked-to fn's context suffices. The dump has IPA function summary for void c::*.LLTHUNK0(...)/1 thanks. does this patch work for you? nathan -- Nathan Sidwel

Re: [PR c++/83667] Fix tree_dump ICE

2018-01-04 Thread Jakub Jelinek
On Thu, Jan 04, 2018 at 09:55:10AM +0100, Rainer Orth wrote: > Hi Nathan, > > > This fixes a tree dumping ICE involving static thunk fns. Copying the > > thunked-to fn's context suffices. > > the new test FAILs on Solaris/SPARC: > > FAIL: g++.dg/ipa/pr83667.C -std=gnu++11 scan-ipa-dump inline

Re: [PR c++/83667] Fix tree_dump ICE

2018-01-04 Thread Rainer Orth
Hi Nathan, > This fixes a tree dumping ICE involving static thunk fns. Copying the > thunked-to fn's context suffices. the new test FAILs on Solaris/SPARC: FAIL: g++.dg/ipa/pr83667.C -std=gnu++11 scan-ipa-dump inline "summary for void c::*.LTHUNK0" FAIL: g++.dg/ipa/pr83667.C -std=gnu++1

[PR c++/83667] Fix tree_dump ICE

2018-01-03 Thread Nathan Sidwell
This fixes a tree dumping ICE involving static thunk fns. Copying the thunked-to fn's context suffices. nathan -- Nathan Sidwell 2018-01-03 Nathan Sidwell PR c++/83667 * method.c (make_alias_for): Copy DECL_CONTEXT. PR c++/83667 * g++.dg/ipa/pr83667.C: New. Index: cp/method.c