diff options
author | Sharad Singhai <singhai@google.com> | 2013-01-18 18:26:04 +0000 |
---|---|---|
committer | Sharad Singhai <singhai@gcc.gnu.org> | 2013-01-18 18:26:04 +0000 |
commit | a3d7af04118e10c592dfdd9502a8368df3d34853 (patch) | |
tree | f815f25d8f722ca435ea413125a86500a173f9e5 /gcc | |
parent | 66aa7879c87e4ecc9f99509c517afa0b4401f0c4 (diff) | |
download | gcc-a3d7af04118e10c592dfdd9502a8368df3d34853.zip gcc-a3d7af04118e10c592dfdd9502a8368df3d34853.tar.gz gcc-a3d7af04118e10c592dfdd9502a8368df3d34853.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/dumpfile.c | 9 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/vect/vect.exp | 3 | ||||
-rw-r--r-- | gcc/tree-vectorizer.c | 2 |
5 files changed, 19 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2be4cf3..3113277 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +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 diff --git a/gcc/dumpfile.c b/gcc/dumpfile.c index 915948a..ddd7c96 100644 --- a/gcc/dumpfile.c +++ b/gcc/dumpfile.c @@ -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)); } } diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c2098a4..20ebbbb 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +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 diff --git a/gcc/testsuite/gcc.dg/vect/vect.exp b/gcc/testsuite/gcc.dg/vect/vect.exp index 1b474c3..bea7ee0 100644 --- a/gcc/testsuite/gcc.dg/vect/vect.exp +++ b/gcc/testsuite/gcc.dg/vect/vect.exp @@ -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 diff --git a/gcc/tree-vectorizer.c b/gcc/tree-vectorizer.c index 66b46a0..42ebb8d 100644 --- a/gcc/tree-vectorizer.c +++ b/gcc/tree-vectorizer.c @@ -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) { |