Commit 8a34409d by Richard Henderson Committed by Richard Henderson

reload1.c (eliminate_regs_in_insn): Avoid eliminating the reg notes on a deleted insn.

        * reload1.c (eliminate_regs_in_insn): Avoid eliminating the
        reg notes on a deleted insn.
        * gcse.c (hash_expr_1): Use XWINT on a CONST_DOUBLE.

From-SVN: r29076
parent 42f7a8d4
Thu Sep 2 21:49:52 1999 Richard Henderson <rth@cygnus.com>
* reload1.c (eliminate_regs_in_insn): Avoid eliminating the
reg notes on a deleted insn.
* gcse.c (hash_expr_1): Use XWINT on a CONST_DOUBLE.
Thu Sep 2 20:18:12 1999 Jeffrey A Law (law@cygnus.com) Thu Sep 2 20:18:12 1999 Jeffrey A Law (law@cygnus.com)
* i386.c (ix86_attr_length_default): Handle TYPE_FXCH. * i386.c (ix86_attr_length_default): Handle TYPE_FXCH.
......
...@@ -1363,7 +1363,7 @@ hash_expr_1 (x, mode, do_not_record_p) ...@@ -1363,7 +1363,7 @@ hash_expr_1 (x, mode, do_not_record_p)
if (GET_MODE (x) != VOIDmode) if (GET_MODE (x) != VOIDmode)
for (i = 2; i < GET_RTX_LENGTH (CONST_DOUBLE); i++) for (i = 2; i < GET_RTX_LENGTH (CONST_DOUBLE); i++)
{ {
unsigned tem = XINT (x, i); unsigned tem = XWINT (x, i);
hash += tem; hash += tem;
} }
else else
......
...@@ -3355,7 +3355,10 @@ eliminate_regs_in_insn (insn, replace) ...@@ -3355,7 +3355,10 @@ eliminate_regs_in_insn (insn, replace)
If REPLACE isn't set, we can't delete this insn, but needn't If REPLACE isn't set, we can't delete this insn, but needn't
process it since it won't be used unless something changes. */ process it since it won't be used unless something changes. */
if (replace) if (replace)
{
delete_dead_insn (insn); delete_dead_insn (insn);
return 1;
}
val = 1; val = 1;
goto done; goto done;
} }
......
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