Re: [PR 70929] IPA call type compatibility fix/workaround

2019-10-10 Thread Richard Biener
Now also to the list... On Thu, 10 Oct 2019, Richard Biener wrote: > On Thu, 10 Oct 2019, Martin Jambor wrote: > > > Hi, > > > > On Wed, Oct 09 2019, Richard Biener wrote: > > >> > > > > ... > > > > >> + /* If we only have the fntype extracted from the call statement, > > >> check it > >

Re: [PR 70929] IPA call type compatibility fix/workaround

2019-10-10 Thread Martin Jambor
Hi, On Wed, Oct 09 2019, Richard Biener wrote: >> ... >> + /* If we only have the fntype extracted from the call statement, check it >> + against the type of declarations while being pessimistic about >> + promotions. */ >> + tree p; >> + >> + if (fndecl) >> +p = TYPE_ARG_TYPES

Re: [PR 70929] IPA call type compatibility fix/workaround

2019-10-09 Thread Richard Biener
On Tue, 8 Oct 2019, Martin Jambor wrote: > Hi, > > I've been looking at PR 70929 and at the newly reported duplicate PR > 91988 and would like to propose the following patch to address them. > Basically, the idea is that if the types or arguments in TYPE_ARG_TYPES > (as opposed to

[PR 70929] IPA call type compatibility fix/workaround

2019-10-08 Thread Martin Jambor
Hi, I've been looking at PR 70929 and at the newly reported duplicate PR 91988 and would like to propose the following patch to address them. Basically, the idea is that if the types or arguments in TYPE_ARG_TYPES (as opposed to DECL_ARGUMENTS) from both the type from the target fndecl and from