Commit d6633f01 by Nathan Sidwell Committed by Jeff Law

reload1.c (eliminate_regs): Don't do anything, if we're not generating code.

�
        * reload1.c (eliminate_regs): Don't do anything, if we're not
        generating code.

From-SVN: r24168
parent 9becac0c
...@@ -2651,11 +2651,8 @@ eliminate_regs (x, mem_mode, insn) ...@@ -2651,11 +2651,8 @@ 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 if (! current_function_decl)
definition in a file with no functions (for exmaple). Ensure we return x;
have a valid elimination table in such cases. */
if (reg_eliminate == NULL)
init_elim_table ();
switch (code) switch (code)
{ {
......
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