This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] PR23083





A call to fprintf that wasn't guarded by a call to vect_print_dump_info
caused this ICE (when vect_dump is null). The obvious fix below was
bootstrapped on powerpc-darwin. Will install this patch later today

dorit

Changelog:
PR tree-optimization/23083
* tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
vect_print_dump_info before fprintf.

patch:
Index: tree-vect-analyze.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-vect-analyze.c,v
retrieving revision 2.33
diff -c -3 -p -r2.33 tree-vect-analyze.c
*** tree-vect-analyze.c 25 Jul 2005 12:04:50 -0000      2.33
--- tree-vect-analyze.c 27 Jul 2005 07:43:20 -0000
*************** vect_analyze_data_refs_alignment (loop_v
*** 1056,1068 ****
        supportable_dr_alignment = vect_supportable_dr_alignment (dr);
        if (!supportable_dr_alignment)
        {
!             if (DR_IS_READ (dr))
!               fprintf (vect_dump,
!                        "not vectorized: unsupported unaligned load.");
!             else
!               fprintf (vect_dump,
!                        "not vectorized: unsupported unaligned store.");
!           return false;
        }
        if (supportable_dr_alignment != dr_aligned
          && (vect_print_dump_info (REPORT_ALIGNMENT)))
--- 1056,1071 ----
        supportable_dr_alignment = vect_supportable_dr_alignment (dr);
        if (!supportable_dr_alignment)
        {
!         if (vect_print_dump_info (REPORT_UNVECTORIZED_LOOPS))
!           {
!             if (DR_IS_READ (dr))
!               fprintf (vect_dump,
!                        "not vectorized: unsupported unaligned load.");
!             else
!               fprintf (vect_dump,
!                        "not vectorized: unsupported unaligned store.");
!           }
!         return false;
        }
        if (supportable_dr_alignment != dr_aligned
          && (vect_print_dump_info (REPORT_ALIGNMENT)))


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]