Re: [c++, PR 47714] Reset the addressable flag of thunk PARM_DECLs

2011-03-09 Thread Eric Botcazou
> 2011-03-08 Martin Jambor > > PR tree-optimization/47714 > * cp/method.c (use_thunk): Clear addressable flag of thunk arguments. This should go in cp/ChangeLog without the cp/ prefix. -- Eric Botcazou

[c++, PR 47714] Reset the addressable flag of thunk PARM_DECLs

2011-03-09 Thread Martin Jambor
Hi, the patch below fixes PR 47714. The problem is that as thunk function declarations are built, their PARM_DECLs are copied from the thunked function together with their TREE_ADDRESSABLE flags. This then means the parameters are not considered gimple registers when they are supposed to be conv