Commit 502498d5 by Jakub Jelinek Committed by Jakub Jelinek

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
parent 3a984f10
2013-01-22 Jakub Jelinek <jakub@redhat.com> 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.
PR target/55686 PR target/55686
* config/i386/i386.md (UNSPEC_STOS): New. * config/i386/i386.md (UNSPEC_STOS): New.
(strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1, (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
......
...@@ -260,7 +260,7 @@ dump_loc (int dump_kind, FILE *dfile, source_location loc) ...@@ -260,7 +260,7 @@ dump_loc (int dump_kind, FILE *dfile, source_location loc)
/* Currently vectorization passes print location information. */ /* Currently vectorization passes print location information. */
if (dump_kind) if (dump_kind)
{ {
if (loc != UNKNOWN_LOCATION) if (LOCATION_LOCUS (loc) > BUILTINS_LOCATION)
fprintf (dfile, "\n%s:%d: note: ", LOCATION_FILE (loc), fprintf (dfile, "\n%s:%d: note: ", LOCATION_FILE (loc),
LOCATION_LINE (loc)); LOCATION_LINE (loc));
else if (current_function_decl) else if (current_function_decl)
......
...@@ -1357,7 +1357,8 @@ find_loop_location (struct loop *loop) ...@@ -1357,7 +1357,8 @@ find_loop_location (struct loop *loop)
stmt = get_loop_exit_condition (loop); stmt = get_loop_exit_condition (loop);
if (stmt && gimple_location (stmt) != UNKNOWN_LOC) if (stmt
&& LOCATION_LOCUS (gimple_location (stmt)) > BUILTINS_LOCATION)
return gimple_location (stmt); return gimple_location (stmt);
/* If we got here the loop is probably not "well formed", /* If we got here the loop is probably not "well formed",
...@@ -1371,7 +1372,7 @@ find_loop_location (struct loop *loop) ...@@ -1371,7 +1372,7 @@ find_loop_location (struct loop *loop)
for (si = gsi_start_bb (bb); !gsi_end_p (si); gsi_next (&si)) for (si = gsi_start_bb (bb); !gsi_end_p (si); gsi_next (&si))
{ {
stmt = gsi_stmt (si); stmt = gsi_stmt (si);
if (gimple_location (stmt) != UNKNOWN_LOC) if (LOCATION_LOCUS (gimple_location (stmt)) > BUILTINS_LOCATION)
return gimple_location (stmt); return gimple_location (stmt);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment