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/dumpfile.c | |
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/dumpfile.c')
-rw-r--r-- | gcc/dumpfile.c | 9 |
1 files changed, 4 insertions, 5 deletions
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)); } } |