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 6b66ea64c6956aee5bea251554c5642e85a1edec..f57accb4571252d0dee3b8570b385b54db919faa 100644 (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
index a520b57cce71b128eb801fdffdea17ac00e15f7c..f0f65f5e9d9c661b21218729086ea71914cbb6a7 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 e92cbc8703b52a83a76aa9cff05e9927399eb12c..833e64096caf00cc212170a4531b2be1c6d68713 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