rs6000.h (RETURN_ADDRESS_OFFSET): Correct for 64-bit ABI.
authorGeoff Keating <geoffk@cygnus.com>
Sun, 14 May 2000 21:43:44 +0000 (21:43 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Sun, 14 May 2000 21:43:44 +0000 (21:43 +0000)
* config/rs6000/rs6000.h (RETURN_ADDRESS_OFFSET): Correct for
64-bit ABI.

From-SVN: r33900

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

index f9c8770b264de796ab6e2d9a06b5c95a4f0490ab..474ae65b00fe80f3cbce26f9f77115baf40a62b3 100644 (file)
@@ -1,5 +1,8 @@
 2000-05-14  Geoffrey Keating  <geoffk@cygnus.com>
 
+       * config/rs6000/rs6000.h (RETURN_ADDRESS_OFFSET): Correct for
+       64-bit ABI.
+
        * config/rs6000/rs6000.c (logical_operand): Rewrite to take MODE 
        into account.
        (logical_u_operand): Delete.
index c2fbb331da2b63ef4b05eb5ee8ceaf0d1774343e..7d48daf7cb04a57150976ca2be755e3857dc9bc8 100644 (file)
@@ -1614,7 +1614,7 @@ typedef struct rs6000_args
    abi's store the return address.  */
 #define RETURN_ADDRESS_OFFSET                                          \
  ((DEFAULT_ABI == ABI_AIX                                              \
-   || DEFAULT_ABI == ABI_AIX_NODESC)   ? 8 :                           \
+   || DEFAULT_ABI == ABI_AIX_NODESC)   ? (TARGET_32BIT ? 8 : 16) :     \
   (DEFAULT_ABI == ABI_V4                                               \
    || DEFAULT_ABI == ABI_SOLARIS)      ? (TARGET_32BIT ? 4 : 8) :      \
   (fatal ("RETURN_ADDRESS_OFFSET not supported"), 0))