Re: [PATCH] Fix invalid tree sharing caused by the inliner (PR tree-optimization/59386)

2013-12-11 Thread Richard Biener
On Wed, 11 Dec 2013, Jakub Jelinek wrote: > Hi! > > If id->retvar isn't a decl (can happen for DECL_BY_REFERENCE returns), > then we can end up with invalid tree sharing because we reuse it more than > once (on the following testcase id->retvar is a COMPONENT_REF). > > Fixed thusly, bootstrapped

[PATCH] Fix invalid tree sharing caused by the inliner (PR tree-optimization/59386)

2013-12-11 Thread Jakub Jelinek
Hi! If id->retvar isn't a decl (can happen for DECL_BY_REFERENCE returns), then we can end up with invalid tree sharing because we reuse it more than once (on the following testcase id->retvar is a COMPONENT_REF). Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?