[PATCH] Fix ICEs with dump_loc (PR middle-end/56074)
Jeff Law
law@redhat.com
Tue Jan 22 16:52:00 GMT 2013
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. The patch also changes find_loop_location,
> so that it attempts to find a better location.
>
> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
>
> 2013-01-22 Jakub Jelinek <jakub@redhat.com>
>
> PR middle-end/56074
> * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
> isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
> * tree-vect-loop-manip.c (find_loop_location): Also ignore
> stmt locations where LOCATION_LOCUS of the stmt location is
> UNKNOWN_LOCATION or BUILTINS_LOCATION.
OK.
Jeff
More information about the Gcc-patches
mailing list