public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-4618] or1k: Fix -Wincompatible-pointer-types warning during libgcc build
@ 2023-10-13  7:37 Florian Weimer
  0 siblings, 0 replies; only message in thread
From: Florian Weimer @ 2023-10-13  7:37 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:cf611de73d829742f67461e2287fa4ec2bf99801

commit r14-4618-gcf611de73d829742f67461e2287fa4ec2bf99801
Author: Florian Weimer <fweimer@redhat.com>
Date:   Fri Oct 13 09:34:37 2023 +0200

    or1k: Fix -Wincompatible-pointer-types warning during libgcc build
    
    libgcc/
    
            * config/or1k/linux-unwind.h (or1k_fallback_frame_state): Add
            missing cast.

Diff:
---
 libgcc/config/or1k/linux-unwind.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libgcc/config/or1k/linux-unwind.h b/libgcc/config/or1k/linux-unwind.h
index aa873791daa..37b0c5aef37 100644
--- a/libgcc/config/or1k/linux-unwind.h
+++ b/libgcc/config/or1k/linux-unwind.h
@@ -51,7 +51,7 @@ or1k_fallback_frame_state (struct _Unwind_Context *context,
     return _URC_END_OF_STACK;
 
   rt = context->cfa;
-  sc = &rt->uc.uc_mcontext;
+  sc = (struct sigcontext *) &rt->uc.uc_mcontext;
 
   new_cfa = sc->regs.gpr[1];
   fs->regs.cfa_how = CFA_REG_OFFSET;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-10-13  7:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-13  7:37 [gcc r14-4618] or1k: Fix -Wincompatible-pointer-types warning during libgcc build Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).