This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH v2, haifa-sched]: Fix PR56023, -fcompare-debug failure due to sched1 pass on 4.6 branch
On Mon, Jan 21, 2013 at 1:27 PM, Uros Bizjak <ubizjak@gmail.com> wrote:
>> We should not update ticks of instructions, dependent on debug
>> instruction. Without the patch, the scheduling order depends on the
>> presence of debug instructions and leads to -fcompare-debug failures.
>
> Attached patch refines previous patch to reject only cases where
> non-debug insns depend on debug instructions. We can still fix
> inter-ticks of dependent debug insns, without affecting emitted
> real-insn sequences.
FTR, from offline discussion with Vlad, setting ticks of debug
instructions is not necessary (and just wastes cycles), so I will
commit version 1 of the patch.
Uros.