aboutsummaryrefslogtreecommitdiff
path: root/gcc/dumpfile.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2013-01-22 18:03:33 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2013-01-22 18:03:33 +0100
commit502498d5b3f3c7522db7d6fe637d0163c85c5894 (patch)
treef250403bc233ce602812274ea57fc88475c0e73e /gcc/dumpfile.c
parent3a984f1011711044bc57484f7303230eef4b2d85 (diff)
downloadgcc-502498d5b3f3c7522db7d6fe637d0163c85c5894.zip
gcc-502498d5b3f3c7522db7d6fe637d0163c85c5894.tar.gz
gcc-502498d5b3f3c7522db7d6fe637d0163c85c5894.tar.bz2
re PR middle-end/56074 (ICE compiling gcc.dg/vect/pr49093.c)
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. From-SVN: r195382
Diffstat (limited to 'gcc/dumpfile.c')
-rw-r--r--gcc/dumpfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dumpfile.c b/gcc/dumpfile.c
index ddd7c96..7442a27 100644
--- a/gcc/dumpfile.c
+++ b/gcc/dumpfile.c
@@ -260,7 +260,7 @@ dump_loc (int dump_kind, FILE *dfile, source_location loc)
/* Currently vectorization passes print location information. */
if (dump_kind)
{
- if (loc != UNKNOWN_LOCATION)
+ if (LOCATION_LOCUS (loc) > BUILTINS_LOCATION)
fprintf (dfile, "\n%s:%d: note: ", LOCATION_FILE (loc),
LOCATION_LINE (loc));
else if (current_function_decl)