rs6000.h (EPILOGUE_USES): Use TARGET_AIX, not TARGET_TOC for special toc restore...
authorRichard Henderson <rth@redhat.com>
Wed, 28 Mar 2001 12:22:48 +0000 (04:22 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 28 Mar 2001 12:22:48 +0000 (04:22 -0800)
        * 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

gcc/ChangeLog
gcc/config/rs6000/rs6000.h
gcc/config/rs6000/rs6000.md

index 6b66ea6..f57accb 100644 (file)
@@ -1,5 +1,11 @@
 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.
index a520b57..f0f65f5 100644 (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,
index e92cbc8..833e640 100644 (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