[PATCH] Fix ICEs with dump_loc (PR middle-end/56074)

2013-01-22 Thread Jakub Jelinek
Hi! While glibc fprintf allows printing %s with NULL argument as (null), other C libraries aren't that forgiving. If loc isn't UNKNOWN_LOCATION, but say BUILTINS_LOCATION, UNKNOWN_LOCATION with an associated BLOCK etc., we might ICE on those hosts. The patch also changes find_loop_location, so

Re: [PATCH] Fix ICEs with dump_loc (PR middle-end/56074)

2013-01-22 Thread Jeff Law
On 01/22/2013 09:49 AM, Jakub Jelinek wrote: Hi! While glibc fprintf allows printing %s with NULL argument as (null), other C libraries aren't that forgiving. If loc isn't UNKNOWN_LOCATION, but say BUILTINS_LOCATION, UNKNOWN_LOCATION with an associated BLOCK etc., we might ICE on those hosts.