Re: [PR 70857] Copy RESULT_DECL of HSA outlined kernel function

2016-05-16 Thread Jakub Jelinek
On Mon, May 16, 2016 at 04:25:10PM +0200, Martin Jambor wrote: > the patch below fixes PR 70857. When the HSA gridification code > copies the declaration of the function for outlining the target > construct, it left the old RESULT_DECL dangling to it. I did not > notice because it has VOID_TYPE b

[PR 70857] Copy RESULT_DECL of HSA outlined kernel function

2016-05-16 Thread Martin Jambor
Hi, the patch below fixes PR 70857. When the HSA gridification code copies the declaration of the function for outlining the target construct, it left the old RESULT_DECL dangling to it. I did not notice because it has VOID_TYPE but it needs to be done nevertheless, not least because ipa-pta cho