Commit 3553b09d by Richard Henderson Committed by Richard Henderson

rs6000.h (EPILOGUE_USES): Use TARGET_AIX, not TARGET_TOC for special toc restore handling.

        * config/rs6000/rs6000.h (EPILOGUE_USES): Use TARGET_AIX,
        not TARGET_TOC for special toc restore handling.
        * config/rs6000/rs6000.md (eh_return): Likewise.

From-SVN: r40930
parent 94b68558
2001-03-28 Richard Henderson <rth@redhat.com>
* config/rs6000/rs6000.h (EPILOGUE_USES): Use TARGET_AIX,
not TARGET_TOC for special toc restore handling.
* config/rs6000/rs6000.md (eh_return): Likewise.
2001-03-28 Richard Henderson <rth@redhat.com>
* config/sparc/sparc.c (eligible_for_epilogue_delay): False if
current_function_calls_eh_return.
(output_function_epilogue): Handle eh_return.
......
......@@ -1573,7 +1573,7 @@ typedef struct rs6000_args
#define EPILOGUE_USES(REGNO) \
((reload_completed && (REGNO) == LINK_REGISTER_REGNUM) \
|| (current_function_calls_eh_return \
&& TARGET_TOC \
&& TARGET_AIX \
&& (REGNO) == TOC_REGISTER))
/* This macro generates the assembly code for function exit,
......
......@@ -13388,8 +13388,9 @@ operands[2] = GEN_INT (INTVAL (operands[1]) >> 32);
""
"
{
if (TARGET_TOC)
#if TARGET_AIX
rs6000_emit_eh_toc_restore (operands[0]);
#endif
if (TARGET_32BIT)
emit_insn (gen_eh_set_lr_si (operands[1]));
else
......
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