diff options
author | bernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-08-11 16:53:09 +0000 |
---|---|---|
committer | bernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-08-11 16:53:09 +0000 |
commit | 6404c5f674ff7a5d0c376fb773d3b9e3e68f0aa5 (patch) | |
tree | 75ea95cbcd89741cdddda5ace079d05b8d8d8b75 /gcc/reload1.c | |
parent | 341eb035d612d193ce673a50e8667e427584c470 (diff) | |
download | gcc-6404c5f674ff7a5d0c376fb773d3b9e3e68f0aa5.tar.gz |
* reload1.c (replaced_subreg, gen_reload): Add
SECONDARY_MEMORY_NEEDED ifdefs as necessary.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190318 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reload1.c')
-rw-r--r-- | gcc/reload1.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/reload1.c b/gcc/reload1.c index bf5d3d3bb08..4c1ecfc9081 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -8469,6 +8469,7 @@ emit_insn_if_valid_for_reload (rtx insn) return NULL; } +#ifdef SECONDARY_MEMORY_NEEDED /* If X is not a subreg, return it unmodified. If it is a subreg, look up whether we made a replacement for the SUBREG_REG. Return either the replacement or the SUBREG_REG. */ @@ -8480,6 +8481,7 @@ replaced_subreg (rtx x) return find_replacement (&SUBREG_REG (x)); return x; } +#endif /* Emit code to perform a reload from IN (which may be a reload register) to OUT (which may also be a reload register). IN or OUT is from operand @@ -8491,7 +8493,10 @@ static rtx gen_reload (rtx out, rtx in, int opnum, enum reload_type type) { rtx last = get_last_insn (); - rtx tem, tem1, tem2; + rtx tem; +#ifdef SECONDARY_MEMORY_NEEDED + rtx tem1, tem2; +#endif /* If IN is a paradoxical SUBREG, remove it and try to put the opposite SUBREG on OUT. Likewise for a paradoxical SUBREG on OUT. */ |