diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-09-02 03:40:32 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-09-02 03:40:32 +0000 |
commit | 86aca5ac58e152336e676bc1231acac6adc32068 (patch) | |
tree | 00979a39cd0ad07ee356167357bca70cd79ea899 | |
parent | aae95a1b6a1356ca2c6bc1f23a211c29da9e1ea4 (diff) | |
download | glibc-86aca5ac58e152336e676bc1231acac6adc32068.tar.gz glibc-86aca5ac58e152336e676bc1231acac6adc32068.tar.xz glibc-86aca5ac58e152336e676bc1231acac6adc32068.zip |
Update.
2004-09-01 Andreas Schwab <schwab@suse.de> * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h [g++ >= 3.5]: Use __builtin_offsetof.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/ia64/sys/ucontext.h | 7 |
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index d1e99dacc7..30afaf552e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-09-01 Andreas Schwab <schwab@suse.de> + + * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h [g++ >= 3.5]: Use + __builtin_offsetof. + 2004-09-01 Jakub Jelinek <jakub@redhat.com> [BZ #361] diff --git a/sysdeps/unix/sysv/linux/ia64/sys/ucontext.h b/sysdeps/unix/sysv/linux/ia64/sys/ucontext.h index 1cb1ec5d24..17dc85f997 100644 --- a/sysdeps/unix/sysv/linux/ia64/sys/ucontext.h +++ b/sysdeps/unix/sysv/linux/ia64/sys/ucontext.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1998, 2000, 2001, 2002 Free Software Foundation, Inc. +/* Copyright (C) 1998, 2000, 2001, 2002, 2004 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 @@ -32,7 +32,10 @@ typedef struct sigcontext mcontext_t; -#ifdef __GNUC__ +#if defined __cplusplus && __GNUC_PREREQ (3, 5) +# define _SC_GR0_OFFSET \ + __builtin_offsetof (struct sigcontext, sc_gr[0]) +#elif defined __GNUC__ # define _SC_GR0_OFFSET \ (((char *) &((struct sigcontext *) 0)->sc_gr[0]) - (char *) 0) #else |