2
0
mirror of git://gcc.gnu.org/git/gcc.git synced 2025-04-13 16:31:20 +08:00

Fix abort where write_count got to 3

From-SVN: r45137
This commit is contained in:
Bernd Schmidt 2001-08-23 19:25:03 +00:00 committed by Bernd Schmidt
parent ab75d1f125
commit 3e7c78058f
2 changed files with 9 additions and 1 deletions
gcc
ChangeLog
config/ia64

@ -1,3 +1,8 @@
2001-08-23 Bernd Schmidt <bernds@redhat.com>
* 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 <jh@suse.cz>
* function.c (thread_prologue_and_epilogue_insns): Avoid

@ -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;