From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 706 invoked by alias); 11 Nov 2008 09:26:10 -0000 Received: (qmail 22956 invoked by uid 48); 11 Nov 2008 09:24:41 -0000 Date: Tue, 11 Nov 2008 09:26:00 -0000 Message-ID: <20081111092441.22954.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/38079] gcc segfaults when using -ftree-vectorizer-verbose=9 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "irar at il dot ibm dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-11/txt/msg00778.txt.bz2 ------- Comment #2 from irar at il dot ibm dot com 2008-11-11 09:24 ------- I am testing the following: Index: tree-vect-analyze.c =================================================================== --- tree-vect-analyze.c (revision 141763) +++ tree-vect-analyze.c (working copy) @@ -3314,8 +3314,8 @@ vect_analyze_data_refs (loop_vec_info lo 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, @@ -3325,7 +3325,7 @@ vect_analyze_data_refs (loop_vec_info lo 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; } @@ -3333,7 +3333,7 @@ vect_analyze_data_refs (loop_vec_info lo 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; } @@ -3353,7 +3353,7 @@ vect_analyze_data_refs (loop_vec_info lo 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; } @@ -3376,18 +3376,18 @@ vect_analyze_data_refs (loop_vec_info lo STMT_VINFO_DR_ALIGNED_TO (stmt_info) = size_int (highest_pow2_factor (offset_iv.base)); - if (dump_file && (dump_flags & TDF_DETAILS)) + if (vect_dump && (dump_flags & TDF_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); } } -- irar at il dot ibm dot com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |irar at il dot ibm dot com |dot org | Status|UNCONFIRMED |ASSIGNED Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2008-11-11 09:24:41 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38079