Преглед на файлове

we want to compare the register value itself, not the address of the variable holding the register value

Mike Frysinger преди 20 години
родител
ревизия
ebb0a88c81
променени са 3 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 1 1
      libc/sysdeps/linux/microblaze/bits/setjmp.h
  2. 2 2
      libc/sysdeps/linux/sh/bits/setjmp.h
  3. 1 1
      libc/sysdeps/linux/v850/bits/setjmp.h

+ 1 - 1
libc/sysdeps/linux/microblaze/bits/setjmp.h

@@ -38,6 +38,6 @@ typedef struct
 /* Test if longjmp to JMPBUF would unwind the frame
    containing a local variable at ADDRESS.  */
 #define _JMPBUF_UNWINDS(jmpbuf, address) \
-  ((void *) (address) < (void *) &(jmpbuf)[0].__sp)
+  ((void *) (address) < (void *) (jmpbuf)[0].__sp)
 
 #endif	/* bits/setjmp.h */

+ 2 - 2
libc/sysdeps/linux/sh/bits/setjmp.h

@@ -1,4 +1,4 @@
-/* Copyright (C) 1999, 2000, 2003 Free Software Foundation, Inc.
+/* Copyright (C) 1999, 2000, 2003, 2005 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
@@ -51,6 +51,6 @@ typedef struct
 /* Test if longjmp to JMPBUF would unwind the frame
    containing a local variable at ADDRESS.  */
 #define _JMPBUF_UNWINDS(jmpbuf, address) \
-  ((void *) (address) < (void *) &(jmpbuf)[0].__regs[7])
+  ((void *) (address) < (void *) (jmpbuf)[0].__regs[7])
 
 #endif	/* bits/setjmp.h */

+ 1 - 1
libc/sysdeps/linux/v850/bits/setjmp.h

@@ -37,6 +37,6 @@ typedef struct
 /* Test if longjmp to JMPBUF would unwind the frame
    containing a local variable at ADDRESS.  */
 #define _JMPBUF_UNWINDS(jmpbuf, address) \
-  ((void *) (address) < (void *) &(jmpbuf)[0].__sp)
+  ((void *) (address) < (void *) (jmpbuf)[0].__sp)
 
 #endif	/* bits/setjmp.h */