Re: Fix ICE with thunks taking argument passed by reference

2014-11-07 Thread Jeff Law
On 11/06/14 03:36, Jan Hubicka wrote: Hi, PR63573 is about ICE when expanding thunk call for function taking as a parameter structure passed by reference. This structure in fact contains only one integer and thus it is promoted to register by argument setup in function.c (as an optimization). Th

Re: Fix ICE with thunks taking argument passed by reference

2014-11-06 Thread Richard Biener
On Thu, 6 Nov 2014, Jan Hubicka wrote: > Hi, > PR63573 is about ICE when expanding thunk call for function taking as a > parameter structure passed by reference. This structure in fact contains only > one integer and thus it is promoted to register by argument setup in > function.c > (as an opti

Fix ICE with thunks taking argument passed by reference

2014-11-06 Thread Jan Hubicka
Hi, PR63573 is about ICE when expanding thunk call for function taking as a parameter structure passed by reference. This structure in fact contains only one integer and thus it is promoted to register by argument setup in function.c (as an optimization). This is an sensible optimization, but when