This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: FW: [PATCH] Fix PR ipa/64049


> On Mon, Dec 8, 2014 at 11:57 AM, Bernd Edlinger
> <bernd.edlinger@hotmail.de> wrote:
> >
> >
> >>
> >> Hello,
> >>
> >>
> >> this surprisingly simple patch fixes PR ipa/64049.  The root cause seems to be
> >> that in this test case we try to devirtualize a method call on a return value.
> >>
> >>
> >> Boot-Strapped and regression-tested on X86_64-linux-gnu.
> >> OK for trunk?
> 
> I think positive tests, in this case TREE_CODE (...) == VAR_DECL
> are better.
> 
> Ok with that change.

The test there assumes that only values with well defined default value are parm decls,
so in cases we see a call on default value of other kind of decl, we could turn it
to undefined call.

In what cases has RESULT_DECL sane initial value?  We should at least drop a comment here.

Honza
> 
> Thanks,
> Richard.
> 
> >>
> >> Thanks
> >> Bernd.
> >>
> >
> > Again with changelog. Sorry.
> >


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]