without reload having been called earlier.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23748
138bc75d-0d04-0410-961f-
82ee72b054a4
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.
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: