Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update.
2004-09-01  Andreas Schwab  <schwab@suse.de>

	* sysdeps/unix/sysv/linux/ia64/sys/ucontext.h [g++ >= 3.5]: Use
	__builtin_offsetof.
  • Loading branch information
Ulrich Drepper committed Sep 2, 2004
1 parent aae95a1 commit 86aca5a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions 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]
Expand Down
7 changes: 5 additions & 2 deletions 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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 86aca5a

Please sign in to comment.