diff options
author | Florian Weimer <fweimer@redhat.com> | 2023-12-01 08:10:12 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2023-12-01 08:10:12 +0100 |
commit | 335bd6c938c254e3ae4b019cfc8a94bb8009ca81 (patch) | |
tree | 5c5867c2a1f66c810252984527ed3203aa9d84b5 /libgcc | |
parent | 923a67f17badcbe6e2b2e5d3570a265443258c8e (diff) | |
download | gcc-335bd6c938c254e3ae4b019cfc8a94bb8009ca81.zip gcc-335bd6c938c254e3ae4b019cfc8a94bb8009ca81.tar.gz gcc-335bd6c938c254e3ae4b019cfc8a94bb8009ca81.tar.bz2 |
aarch64: Avoid -Wincompatible-pointer-types warning in Linux unwinder
* config/aarch64/linux-unwind.h
(aarch64_fallback_frame_state): Add cast to the expected type
in sc assignment.
Diffstat (limited to 'libgcc')
-rw-r--r-- | libgcc/config/aarch64/linux-unwind.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libgcc/config/aarch64/linux-unwind.h b/libgcc/config/aarch64/linux-unwind.h index 00eba86..18b3df7 100644 --- a/libgcc/config/aarch64/linux-unwind.h +++ b/libgcc/config/aarch64/linux-unwind.h @@ -77,7 +77,10 @@ aarch64_fallback_frame_state (struct _Unwind_Context *context, } rt_ = context->cfa; - sc = &rt_->uc.uc_mcontext; + /* Historically, the uc_mcontext member was of type struct sigcontext, but + glibc uses a different type now with member names in the implementation + namespace. */ + sc = (struct sigcontext *) &rt_->uc.uc_mcontext; /* This define duplicates the definition in aarch64.md */ #define SP_REGNUM 31 |