Commit a3d7af04 by Sharad Singhai Committed by Sharad Singhai

re PR tree-optimization/55995 (vect increase_alignment notes missing from dump file)

2013-01-18  Sharad Singhai  <singhai@google.com>

	PR tree-optimization/55995
	* dumpfile.c (dump_loc): Print location only if available.
	* tree-vectorizer.c (increase_alignment): Intialize vect_location.

testsuite/ChangeLog
	PR tree-optimization/55995
	* gcc.dg/vect/vect.exp: Use "details" flags for dump info.

From-SVN: r195303
parent 66aa7879
2013-01-18 Sharad Singhai <singhai@google.com>
PR tree-optimization/55995
* dumpfile.c (dump_loc): Print location only if available.
* tree-vectorizer.c (increase_alignment): Intialize vect_location.
2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
PR target/55433
......
......@@ -260,14 +260,13 @@ dump_loc (int dump_kind, FILE *dfile, source_location loc)
/* Currently vectorization passes print location information. */
if (dump_kind)
{
if (loc == UNKNOWN_LOCATION)
if (loc != UNKNOWN_LOCATION)
fprintf (dfile, "\n%s:%d: note: ", LOCATION_FILE (loc),
LOCATION_LINE (loc));
else if (current_function_decl)
fprintf (dfile, "\n%s:%d: note: ",
DECL_SOURCE_FILE (current_function_decl),
DECL_SOURCE_LINE (current_function_decl));
else
fprintf (dfile, "\n%s:%d: note: ",
LOCATION_FILE (loc),
LOCATION_LINE (loc));
}
}
......
2013-01-18 Sharad Singhai <singhai@google.com>
PR tree-optimization/55995
* gcc.dg/vect/vect.exp: Use "details" flags for dump info.
2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
PR target/55433
......
......@@ -156,7 +156,8 @@ dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/section-anchors-*.\[cS\]]]
# alignment-sensitive -fsection-anchors tests
set DEFAULT_VECTCFLAGS $SAVED_DEFAULT_VECTCFLAGS
lappend DEFAULT_VECTCFLAGS "-fsection-anchors" "-fdump-ipa-increase_alignment"
lappend DEFAULT_VECTCFLAGS "-fsection-anchors" \
"-fdump-ipa-increase_alignment-details"
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/aligned-section-anchors-*.\[cS\]]] \
"" $DEFAULT_VECTCFLAGS
......
......@@ -225,6 +225,8 @@ increase_alignment (void)
{
struct varpool_node *vnode;
vect_location = UNKNOWN_LOC;
/* Increase the alignment of all global arrays for vectorization. */
FOR_EACH_DEFINED_VARIABLE (vnode)
{
......
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