The attached patch fixes a warning in pa32_fallback_frame_state.

Tested on hppa-unknown-linux-gnu.  Committed to gcc-9 branch and trunk.

Dave
-- 
John David Anglin  dave.ang...@bell.net

2019-05-26  John David Anglin  <dang...@gcc.gnu.org>

        * config/pa/linux-unwind.h (pa32_fallback_frame_state): Add cast.

Index: config/pa/linux-unwind.h
===================================================================
--- config/pa/linux-unwind.h    (revision 271614)
+++ config/pa/linux-unwind.h    (working copy)
@@ -130,7 +130,7 @@
     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;

Reply via email to