Re: [PATCH] Fix handling of calls to constants (PR debug/48163)

2011-03-17 Thread Richard Henderson
On 03/17/2011 11:40 AM, Jakub Jelinek wrote: > PR debug/48163 > * var-tracking.c (prepare_call_arguments): If CALL target > is a non-SYMBOL_REF CONSTANT_P, just add that into the list as > pc instead of looking it up using cselib_lookup and use > Pmode for it if x has

[PATCH] Fix handling of calls to constants (PR debug/48163)

2011-03-17 Thread Jakub Jelinek
Hi! On calls.c testcase on cris we ICE from prepare_call_arguments on calls like typedef void (*T) (); ((T) 0x10) (); Calling cselib_lookup with VOIDmode can't do any good, but there is not reason why we should cselib_lookup constants, we can just use them as is. Bootstrapped/regtested on