2002-12-14 Olaf Hering <olh@suse.de>
authorRoland McGrath <roland@gnu.org>
Sun, 15 Dec 2002 11:40:22 +0000 (11:40 +0000)
committerRoland McGrath <roland@gnu.org>
Sun, 15 Dec 2002 11:40:22 +0000 (11:40 +0000)
        * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
        * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.

sysdeps/powerpc/bits/setjmp.h
sysdeps/powerpc/powerpc64/setjmp.S

index 3a0a0a0..e17bde1 100644 (file)
@@ -27,6 +27,8 @@
    assembler easier. Naturally, user code should not depend on
    either representation. */
 
+#include <bits/wordsize.h>
+
 #if defined __USE_MISC || defined _ASM
 # define JB_GPR1   0  /* Also known as the stack pointer */
 # define JB_GPR2   1
index 35d2a27..e13f7b4 100644 (file)
@@ -1,6 +1,6 @@
 /* setjmp for PowerPC64.
-   Copyright (C) 1995, 1996, 1997, 1999, 2000, 2001, 2002 
-   Free Software Foundation, Inc.
+   Copyright (C) 1995, 1996, 1997, 1999, 2000, 2001, 2002
+       Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -42,7 +42,7 @@ ___sigsetjmp:
        std  r0,(JB_CR*8)(3)
        std  r17,((JB_GPRS+3)*8)(3)
        stfd fp17,((JB_FPRS+3)*8)(3)
-       std  r18,((JB_GPRS+8)*8)(3)
+       std  r18,((JB_GPRS+4)*8)(3)
        stfd fp18,((JB_FPRS+4)*8)(3)
        std  r19,((JB_GPRS+5)*8)(3)
        stfd fp19,((JB_FPRS+5)*8)(3)
@@ -84,4 +84,3 @@ ENTRY (BP_SYM (__setjmp))
 END (BP_SYM (__setjmp))
 
 strong_alias (__setjmp, setjmp)
-