Check for NULL return from gen_lowpart_if_possible().
From-SVN: r23049
This commit is contained in:
parent
38ada91eef
commit
2ce5e1b422
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue