Commit 261c1810 authored by wilson's avatar wilson
Browse files

Fix glibc -O2 iso646.i abort.

	* config/ia64/ia64.c (rws_access_reg): New local write_count.  If
	is_predicate_reg, then take max write_count of register pair.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34915 138bc75d-0d04-0410-961f-82ee72b054a4
parent 9b464585
2000-07-07 Jim Wilson <wilson@cygnus.com>
* config/ia64/ia64.c (rws_access_reg): New local write_count. If
is_predicate_reg, then take max write_count of register pair.
2000-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
 
* tradcpp.c (main): Rename label `include' to `add_include' to
......
......@@ -2313,6 +2313,8 @@ rws_access_reg (regno, flags, pred)
if (flags.is_write)
{
int write_count;
/* One insn writes same reg multiple times? */
if (rws_insn[regno].write_count > 0)
abort ();
......@@ -2328,7 +2330,12 @@ rws_access_reg (regno, flags, pred)
if (is_predicate_reg)
rws_update (rws_insn, regno + 1, flags, pred);
switch (rws_sum[regno].write_count)
/* ??? Likewise. */
write_count = rws_sum[regno].write_count;
if (is_predicate_reg)
write_count = MAX (write_count, rws_sum[regno + 1].write_count);
switch (write_count)
{
case 0:
/* The register has not been written yet. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment