aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@apple.com>2005-01-03 23:17:55 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2005-01-03 23:17:55 +0000
commita035080cbcedd9c8c595f9fa336f4fcd140eb296 (patch)
tree8d835c4fbcd06396a9be24411cd6de0eb47377a1 /gcc
parent1ab219d324b93e1f1d419f6d50d3e9130b05a519 (diff)
downloadgcc-a035080cbcedd9c8c595f9fa336f4fcd140eb296.zip
gcc-a035080cbcedd9c8c595f9fa336f4fcd140eb296.tar.gz
gcc-a035080cbcedd9c8c595f9fa336f4fcd140eb296.tar.bz2
darwin-fallback.c: Use 'ucontext_t' rather than 'struct ucontext'.
* config/rs6000/darwin-fallback.c: Use 'ucontext_t' rather than 'struct ucontext'. From-SVN: r92870
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/rs6000/darwin-fallback.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1801df9..a1369db 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2005-01-03 Geoffrey Keating <geoffk@apple.com>
+
+ * config/rs6000/darwin-fallback.c: Use 'ucontext_t' rather than
+ 'struct ucontext'.
+
2004-01-03 Steven Bosscher <stevenb@suse.de>
* passes.c (rest_of_compilation): Don't run regmove if only
diff --git a/gcc/config/rs6000/darwin-fallback.c b/gcc/config/rs6000/darwin-fallback.c
index 356b2c9..9140181 100644
--- a/gcc/config/rs6000/darwin-fallback.c
+++ b/gcc/config/rs6000/darwin-fallback.c
@@ -278,7 +278,7 @@ static bool
handle_syscall (_Unwind_FrameState *fs, const reg_unit gprs[32],
_Unwind_Ptr old_cfa)
{
- struct ucontext *uctx;
+ ucontext_t *uctx;
bool is_64, is_vector;
ppc_float_state_t *float_state;
ppc_vector_state_t *vector_state;
@@ -293,7 +293,7 @@ handle_syscall (_Unwind_FrameState *fs, const reg_unit gprs[32],
if (gprs[0] == 0x67 /* SYS_SIGRETURN */)
{
- uctx = (struct ucontext *) gprs[3];
+ uctx = (ucontext_t *) gprs[3];
is_vector = (uctx->uc_mcsize == UC_FLAVOR64_VEC_SIZE
|| uctx->uc_mcsize == UC_FLAVOR_VEC_SIZE);
is_64 = (uctx->uc_mcsize == UC_FLAVOR64_VEC_SIZE
@@ -302,7 +302,7 @@ handle_syscall (_Unwind_FrameState *fs, const reg_unit gprs[32],
else if (gprs[0] == 0 && gprs[3] == 184)
{
int ctxstyle = gprs[5];
- uctx = (struct ucontext *) gprs[4];
+ uctx = (ucontext_t *) gprs[4];
is_vector = (ctxstyle == UC_FLAVOR_VEC || ctxstyle == UC_FLAVOR64_VEC
|| ctxstyle == UC_TRAD_VEC || ctxstyle == UC_TRAD64_VEC);
is_64 = (ctxstyle == UC_FLAVOR64_VEC || ctxstyle == UC_TRAD64_VEC