reload1.c (eliminate_regs): Do not lose if eliminate_regs is called without reload having been called earlier.
* reload1.c (eliminate_regs): Do not lose if eliminate_regs is called without reload having been called earlier. From-SVN: r23748
This commit is contained in:
parent
2268cc5288
commit
9969bb2c99
@ -1,5 +1,8 @@
|
||||
Sat Nov 21 22:12:09 1998 Jeffrey A Law (law@cygnus.com)
|
||||
|
||||
* reload1.c (eliminate_regs): Do not lose if eliminate_regs is called
|
||||
without reload having been called earlier.
|
||||
|
||||
* v850.c (ep_memory_operand): Offsets < 0 are not valid for EP
|
||||
addressing modes.
|
||||
(v850_reorg): Similarly.
|
||||
|
@ -2646,6 +2646,12 @@ eliminate_regs (x, mem_mode, insn)
|
||||
char *fmt;
|
||||
int copied = 0;
|
||||
|
||||
/* We can reach here without reload being run if we have an variable
|
||||
definition in a file with no functions (for exmaple). Ensure we
|
||||
have a valid elimination table in such cases. */
|
||||
if (reg_eliminate == NULL)
|
||||
init_elim_table ();
|
||||
|
||||
switch (code)
|
||||
{
|
||||
case CONST_INT:
|
||||
|
Loading…
Reference in New Issue
Block a user