Commit 9969bb2c by Jeffrey A Law Committed by Jeff Law

reload1.c (eliminate_regs): Do not lose if eliminate_regs is called without…

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
parent 2268cc52
Sat Nov 21 22:12:09 1998 Jeffrey A Law (law@cygnus.com) 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 * v850.c (ep_memory_operand): Offsets < 0 are not valid for EP
addressing modes. addressing modes.
(v850_reorg): Similarly. (v850_reorg): Similarly.
......
...@@ -2646,6 +2646,12 @@ eliminate_regs (x, mem_mode, insn) ...@@ -2646,6 +2646,12 @@ eliminate_regs (x, mem_mode, insn)
char *fmt; char *fmt;
int copied = 0; 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) switch (code)
{ {
case CONST_INT: case CONST_INT:
......
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