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
This commit is contained in:
Richard Henderson 2001-03-28 04:22:48 -08:00 committed by Richard Henderson
parent 94b68558d1
commit 3553b09d2c
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -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,

View File

@ -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