From 3e7c78058f36d1400c985a8c318bff624693de28 Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Thu, 23 Aug 2001 19:25:03 +0000 Subject: Fix abort where write_count got to 3 From-SVN: r45137 --- gcc/ChangeLog | 5 +++++ gcc/config/ia64/ia64.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9899b3f..a38da71 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-08-23 Bernd Schmidt + + * config/ia64/ia64.c (rws_update): If !pred, set write_count + instead of incrementing it. + Thu Aug 23 17:21:43 CEST 2001 Jan Hubicka * function.c (thread_prologue_and_epilogue_insns): Avoid diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c index 8b56dad..fa73e55 100644 --- a/gcc/config/ia64/ia64.c +++ b/gcc/config/ia64/ia64.c @@ -4026,7 +4026,10 @@ rws_update (rws, regno, flags, pred) struct reg_flags flags; int pred; { - rws[regno].write_count += pred ? 1 : 2; + if (pred) + rws[regno].write_count++; + else + rws[regno].write_count = 2; rws[regno].written_by_fp |= flags.is_fp; /* ??? Not tracking and/or across differing predicates. */ rws[regno].written_by_and = flags.is_and; -- cgit v1.1