aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2019-02-20 22:37:21 +0100
committerUros Bizjak <uros@gcc.gnu.org>2019-02-20 22:37:21 +0100
commit1ed28eda9f29927b4c08f50cecb8a43e5fbe1d81 (patch)
tree44ab6257d9619b329747945ecf2c88f85a8d560f /libgcc
parented4ec9ceba552e5a04458af8923a2117b87e3ee8 (diff)
downloadgcc-1ed28eda9f29927b4c08f50cecb8a43e5fbe1d81.zip
gcc-1ed28eda9f29927b4c08f50cecb8a43e5fbe1d81.tar.gz
gcc-1ed28eda9f29927b4c08f50cecb8a43e5fbe1d81.tar.bz2
linux-unwind.h (alpha_fallback_frame_state): Cast 'mcontext_t *' &rt_->uc.uc_mcontext to 'struct sigcontext *'.
* config/alpha/linux-unwind.h (alpha_fallback_frame_state): Cast 'mcontext_t *' &rt_->uc.uc_mcontext to 'struct sigcontext *'. From-SVN: r269053
Diffstat (limited to 'libgcc')
-rw-r--r--libgcc/ChangeLog5
-rw-r--r--libgcc/config/alpha/linux-unwind.h5
2 files changed, 9 insertions, 1 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index c8b59b4..1ada079 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -1,3 +1,8 @@
+2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
+
+ * config/alpha/linux-unwind.h (alpha_fallback_frame_state):
+ Cast 'mcontext_t *' &rt_->uc.uc_mcontext to 'struct sigcontext *'.
+
2019-02-19 Uroš Bizjak <ubizjak@gmail.com>
* unwind-dw2.c (_Unwind_GetGR) [DWARF_ZERO_REG]: Compare
diff --git a/libgcc/config/alpha/linux-unwind.h b/libgcc/config/alpha/linux-unwind.h
index ec75c79..4825649 100644
--- a/libgcc/config/alpha/linux-unwind.h
+++ b/libgcc/config/alpha/linux-unwind.h
@@ -53,7 +53,10 @@ alpha_fallback_frame_state (struct _Unwind_Context *context,
siginfo_t info;
ucontext_t uc;
} *rt_ = context->cfa;
- sc = &rt_->uc.uc_mcontext;
+ /* The void * cast is necessary to avoid an aliasing warning.
+ The aliasing warning is correct, but should not be a problem
+ because it does not alias anything. */
+ sc = (struct sigcontext *) (void *) &rt_->uc.uc_mcontext;
}
else
return _URC_END_OF_STACK;