Re: [rfa] Give thunks correct RESULT_DECL

2011-06-01 Thread Richard Guenther
On Wed, Jun 1, 2011 at 5:36 PM, Michael Matz wrote: > Hi, > > I noticed this a while ago while working on early merging of decls.  When > we build thunk decls ourself we give RESULT_DECL of it integer_type, even > when the thunk decl itself says something else.  (In particular thunks can > very we

[rfa] Give thunks correct RESULT_DECL

2011-06-01 Thread Michael Matz
Hi, I noticed this a while ago while working on early merging of decls. When we build thunk decls ourself we give RESULT_DECL of it integer_type, even when the thunk decl itself says something else. (In particular thunks can very well return void or a pointer type). This fixes that glitch.