From: Jakub Jelinek Date: Mon, 7 Nov 2016 17:35:16 +0000 (+0100) Subject: re PR target/77834 (ICE: in make_decl_rtl, at varasm.c:1311 with -O -ftree-pre -mstri... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a8404b9a268a3f0e7474e8fb7cf8f1808d6e4bed;p=gcc.git re PR target/77834 (ICE: in make_decl_rtl, at varasm.c:1311 with -O -ftree-pre -mstringop-strategy=libcall) PR target/77834 * dse.c (dse_step5): Call scan_reads even if just insn_info->frame_read. Improve and fix dump file messages. From-SVN: r241917 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6bc36e7c634..ba5386e0d25 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2016-11-07 Jakub Jelinek + PR target/77834 + * dse.c (dse_step5): Call scan_reads even if just + insn_info->frame_read. Improve and fix dump file messages. + PR target/78227 * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp. diff --git a/gcc/dse.c b/gcc/dse.c index 95d5757140e..a7ae02200eb 100644 --- a/gcc/dse.c +++ b/gcc/dse.c @@ -3298,12 +3298,19 @@ dse_step5 (void) bitmap_clear (v); } else if (insn_info->read_rec - || insn_info->non_frame_wild_read) + || insn_info->non_frame_wild_read + || insn_info->frame_read) { - if (dump_file && !insn_info->non_frame_wild_read) - fprintf (dump_file, "regular read\n"); - else if (dump_file && (dump_flags & TDF_DETAILS)) - fprintf (dump_file, "non-frame wild read\n"); + if (dump_file && (dump_flags & TDF_DETAILS)) + { + if (!insn_info->non_frame_wild_read + && !insn_info->frame_read) + fprintf (dump_file, "regular read\n"); + if (insn_info->non_frame_wild_read) + fprintf (dump_file, "non-frame wild read\n"); + if (insn_info->frame_read) + fprintf (dump_file, "frame read\n"); + } scan_reads (insn_info, v, NULL); } }