Re: [PATCH] ipa: do not DECL_IS_MALLOC for void fns

2020-12-03 Thread Jan Hubicka
> On 12/2/20 4:25 PM, Martin Jambor wrote: > > Hi, > > > > On Wed, Dec 02 2020, Jan Hubicka wrote: > > > > We create an IPA SRA (which has DECL_IS_MALLOC set to false), but later > > > > IPA pure const propagates malloc attributes. I think we should not set > > > > it for a void returning function

Re: [PATCH] ipa: do not DECL_IS_MALLOC for void fns

2020-12-03 Thread Martin Liška
On 12/2/20 4:25 PM, Martin Jambor wrote: Hi, On Wed, Dec 02 2020, Jan Hubicka wrote: We create an IPA SRA (which has DECL_IS_MALLOC set to false), but later IPA pure const propagates malloc attributes. I think we should not set it for a void returning functions. Patch can bootstrap on x86_64-l

Re: [PATCH] ipa: do not DECL_IS_MALLOC for void fns

2020-12-02 Thread Martin Jambor
Hi, On Wed, Dec 02 2020, Jan Hubicka wrote: >> We create an IPA SRA (which has DECL_IS_MALLOC set to false), but later >> IPA pure const propagates malloc attributes. I think we should not set >> it for a void returning functions. >> >> Patch can bootstrap on x86_64-linux-gnu and survives regress

Re: [PATCH] ipa: do not DECL_IS_MALLOC for void fns

2020-12-02 Thread Jan Hubicka
> Hello. > > We create an IPA SRA (which has DECL_IS_MALLOC set to false), but later > IPA pure const propagates malloc attributes. I think we should not set > it for a void returning functions. > > Patch can bootstrap on x86_64-linux-gnu and survives regression tests. > > Ready to be installed?

[PATCH] ipa: do not DECL_IS_MALLOC for void fns

2020-12-02 Thread Martin Liška
Hello. We create an IPA SRA (which has DECL_IS_MALLOC set to false), but later IPA pure const propagates malloc attributes. I think we should not set it for a void returning functions. Patch can bootstrap on x86_64-linux-gnu and survives regression tests. Ready to be installed? Thanks, Martin