]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Legacy unwinder: Remove definition of _Unwind_GetCFA
authorFlorian Weimer <fweimer@redhat.com>
Tue, 16 Mar 2021 14:33:09 +0000 (15:33 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 16 Mar 2021 14:33:09 +0000 (15:33 +0100)
It is not actually used by the legacy unwinder linked into
libc.so, and it conflicts with the unwind-link functionality
in libpthread.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/generic/unwind-dw2.c

index 618fa8885fce235e8beb4aa66eca1bdb621b9815..da971279be96fd1e2fa18bfa775c8272824ed0e3 100644 (file)
@@ -177,14 +177,6 @@ _Unwind_GetGR (struct _Unwind_Context *context, int index)
   return * (_Unwind_Word *) context->reg[index];
 }
 
-/* Get the value of the CFA as saved in CONTEXT.  */
-
-_Unwind_Word
-_Unwind_GetCFA (struct _Unwind_Context *context)
-{
-  return (_Unwind_Ptr) context->cfa;
-}
-
 /* Overwrite the saved value for register REG in CONTEXT with VAL.  */
 
 inline void