diff options
author | Ira Rosen <irar@il.ibm.com> | 2008-11-12 10:36:03 +0000 |
---|---|---|
committer | Ira Rosen <irar@gcc.gnu.org> | 2008-11-12 10:36:03 +0000 |
commit | 46b0b69d2581551897da799c8e11bab135e51e5d (patch) | |
tree | 99627ada9abca04ea71c2ff2c25d5c58f9b46f75 /gcc | |
parent | 085b55410d90cdfcd0733a16884aabb693a1f050 (diff) | |
download | gcc-46b0b69d2581551897da799c8e11bab135e51e5d.zip gcc-46b0b69d2581551897da799c8e11bab135e51e5d.tar.gz gcc-46b0b69d2581551897da799c8e11bab135e51e5d.tar.bz2 |
re PR tree-optimization/38079 (gcc segfaults when using -ftree-vectorizer-verbose=9)
PR tree-optimization/38079
* tree-vect-analyze.c (vect_analyze_data_refs): Replace dump_file
with vect_dump.
From-SVN: r141785
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/tree-vect-analyze.c | 32 |
2 files changed, 22 insertions, 16 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b8c38c1..5e45a04 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2008-11-12 Ira Rosen <irar@il.ibm.com> + + PR tree-optimization/38079 + * tree-vect-analyze.c (vect_analyze_data_refs): Replace dump_file + with vect_dump. + 2008-11-12 Jakub Jelinek <jakub@redhat.com> PR c++/35334 diff --git a/gcc/tree-vect-analyze.c b/gcc/tree-vect-analyze.c index c97b3fa..a4460b4 100644 --- a/gcc/tree-vect-analyze.c +++ b/gcc/tree-vect-analyze.c @@ -3606,8 +3606,8 @@ vect_analyze_data_refs (loop_vec_info loop_vinfo) if (vect_print_dump_info (REPORT_DETAILS)) { - fprintf (dump_file, "analyze in outer-loop: "); - print_generic_expr (dump_file, inner_base, TDF_SLIM); + fprintf (vect_dump, "analyze in outer-loop: "); + print_generic_expr (vect_dump, inner_base, TDF_SLIM); } outer_base = get_inner_reference (inner_base, &pbitsize, &pbitpos, @@ -3617,7 +3617,7 @@ vect_analyze_data_refs (loop_vec_info loop_vinfo) if (pbitpos % BITS_PER_UNIT != 0) { if (vect_print_dump_info (REPORT_DETAILS)) - fprintf (dump_file, "failed: bit offset alignment.\n"); + fprintf (vect_dump, "failed: bit offset alignment.\n"); return false; } @@ -3625,7 +3625,7 @@ vect_analyze_data_refs (loop_vec_info loop_vinfo) if (!simple_iv (loop, stmt, outer_base, &base_iv, false)) { if (vect_print_dump_info (REPORT_DETAILS)) - fprintf (dump_file, "failed: evolution of base is not affine.\n"); + fprintf (vect_dump, "failed: evolution of base is not affine.\n"); return false; } @@ -3645,7 +3645,7 @@ vect_analyze_data_refs (loop_vec_info loop_vinfo) else if (!simple_iv (loop, stmt, poffset, &offset_iv, false)) { if (vect_print_dump_info (REPORT_DETAILS)) - fprintf (dump_file, "evolution of offset is not affine.\n"); + fprintf (vect_dump, "evolution of offset is not affine.\n"); return false; } @@ -3668,18 +3668,18 @@ vect_analyze_data_refs (loop_vec_info loop_vinfo) STMT_VINFO_DR_ALIGNED_TO (stmt_info) = size_int (highest_pow2_factor (offset_iv.base)); - if (dump_file && (dump_flags & TDF_DETAILS)) + if (vect_print_dump_info (REPORT_DETAILS)) { - fprintf (dump_file, "\touter base_address: "); - print_generic_expr (dump_file, STMT_VINFO_DR_BASE_ADDRESS (stmt_info), TDF_SLIM); - fprintf (dump_file, "\n\touter offset from base address: "); - print_generic_expr (dump_file, STMT_VINFO_DR_OFFSET (stmt_info), TDF_SLIM); - fprintf (dump_file, "\n\touter constant offset from base address: "); - print_generic_expr (dump_file, STMT_VINFO_DR_INIT (stmt_info), TDF_SLIM); - fprintf (dump_file, "\n\touter step: "); - print_generic_expr (dump_file, STMT_VINFO_DR_STEP (stmt_info), TDF_SLIM); - fprintf (dump_file, "\n\touter aligned to: "); - print_generic_expr (dump_file, STMT_VINFO_DR_ALIGNED_TO (stmt_info), TDF_SLIM); + fprintf (vect_dump, "\touter base_address: "); + print_generic_expr (vect_dump, STMT_VINFO_DR_BASE_ADDRESS (stmt_info), TDF_SLIM); + fprintf (vect_dump, "\n\touter offset from base address: "); + print_generic_expr (vect_dump, STMT_VINFO_DR_OFFSET (stmt_info), TDF_SLIM); + fprintf (vect_dump, "\n\touter constant offset from base address: "); + print_generic_expr (vect_dump, STMT_VINFO_DR_INIT (stmt_info), TDF_SLIM); + fprintf (vect_dump, "\n\touter step: "); + print_generic_expr (vect_dump, STMT_VINFO_DR_STEP (stmt_info), TDF_SLIM); + fprintf (vect_dump, "\n\touter aligned to: "); + print_generic_expr (vect_dump, STMT_VINFO_DR_ALIGNED_TO (stmt_info), TDF_SLIM); } } |