summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2019-05-26 15:16:50 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2019-05-26 15:16:50 +0000
commitabbb83070a7a0fb605fb215c69bdca4962f28ed1 (patch)
tree9d113fe1275605b1eda9a20d5769664d38f92d9e
parentc51ecf2813baeab6e24a2474d6c097d047ad41a2 (diff)
downloadgcc-abbb83070a7a0fb605fb215c69bdca4962f28ed1.tar.gz
linux-unwind.h (pa32_fallback_frame_state): Add cast.
* config/pa/linux-unwind.h (pa32_fallback_frame_state): Add cast. From-SVN: r271631
-rw-r--r--libgcc/ChangeLog4
-rw-r--r--libgcc/config/pa/linux-unwind.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index 9dbba188f36..a8cf706cd27 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -1,3 +1,7 @@
+2019-05-26 John David Anglin <danglin@gcc.gnu.org>
+
+ * config/pa/linux-unwind.h (pa32_fallback_frame_state): Add cast.
+
2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
* soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
diff --git a/libgcc/config/pa/linux-unwind.h b/libgcc/config/pa/linux-unwind.h
index f8a2b910a60..4f62ad0b702 100644
--- a/libgcc/config/pa/linux-unwind.h
+++ b/libgcc/config/pa/linux-unwind.h
@@ -130,7 +130,7 @@ pa32_fallback_frame_state (struct _Unwind_Context *context,
return _URC_END_OF_STACK;
frame = (struct rt_sigframe *)(sp + off);
- sc = &frame->uc.uc_mcontext;
+ sc = (struct sigcontext *)&frame->uc.uc_mcontext;
new_cfa = sc->sc_gr[30];
fs->regs.cfa_how = CFA_REG_OFFSET;