From: Nathan Sidwell Date: Mon, 7 Dec 1998 22:10:45 +0000 (-0700) Subject: reload1.c (eliminate_regs): Don't do anything, if we're not generating code. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d6633f01f454cabe70279f4a820cd99eea01eb38;p=gcc.git 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 --- diff --git a/gcc/reload1.c b/gcc/reload1.c index 1b94254b9a4..9595ffd4299 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -2651,11 +2651,8 @@ 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 (); + if (! current_function_decl) + return x; switch (code) {