diff options
author | Nathan Sidwell <nathan@acm.org> | 1998-12-07 15:10:45 -0700 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-12-07 15:10:45 -0700 |
commit | d6633f01f454cabe70279f4a820cd99eea01eb38 (patch) | |
tree | 409d8bc8fe15661330adb6ea794750e11c90b302 | |
parent | 9becac0c3eab471e056059727d44365e56a12167 (diff) | |
download | gcc-d6633f01f454cabe70279f4a820cd99eea01eb38.zip gcc-d6633f01f454cabe70279f4a820cd99eea01eb38.tar.gz gcc-d6633f01f454cabe70279f4a820cd99eea01eb38.tar.bz2 |
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
-rw-r--r-- | gcc/reload1.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/reload1.c b/gcc/reload1.c index 1b94254..9595ffd 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) { |