Commit 2ce5e1b4 by Nick Clifton Committed by Nick Clifton

Check for NULL return from gen_lowpart_if_possible().

From-SVN: r23049
parent 38ada91e
Tue Oct 13 11:37:45 1998 Nick Clifton <nickc@cygnus.com>
* cse.c (equiv_constant): Check for NULL return from
gen_lowpart_if_possible().
Tue Oct 13 11:24:51 1998 Jeffrey A Law (law@cygnus.com)
* collect2.c (main): Pass -EL/-EB through to the compiler.
......
......@@ -5860,7 +5860,7 @@ equiv_constant (x)
&& qty_const[reg_qty[REGNO (x)]])
x = gen_lowpart_if_possible (GET_MODE (x), qty_const[reg_qty[REGNO (x)]]);
if (x != 0 && CONSTANT_P (x))
if (x == 0 || CONSTANT_P (x))
return x;
/* If X is a MEM, try to fold it outside the context of any insn to see if
......
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