diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-12-07 22:10:45 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-12-07 22:10:45 +0000 |
commit | e965e3405db23b8c3293cbad110961a42291a53f (patch) | |
tree | 409d8bc8fe15661330adb6ea794750e11c90b302 /gcc/reload1.c | |
parent | 41d4bac024f685e4eec942d5c33b225013a82bdd (diff) | |
download | gcc-e965e3405db23b8c3293cbad110961a42291a53f.tar.gz |
�
* reload1.c (eliminate_regs): Don't do anything, if we're not
generating code.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24168 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reload1.c')
-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 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) { |