[gcc(refs/vendors/ARM/heads/morello)] Update declarations of _Unwind_FindFDE in unwind-dw2-fde-dip.c

Matthew Malcomson matmal01@gcc.gnu.org
Mon Feb 28 12:08:09 GMT 2022


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

commit a1797c08748cd2b762d24532e49db6a3d980bc74
Author: Matthew Malcomson <matthew.malcomson@arm.com>
Date:   Tue Dec 14 09:31:20 2021 +0000

    Update declarations of _Unwind_FindFDE in unwind-dw2-fde-dip.c
    
    This file is used when compiling for linux but not when compiling for
    bare-metal.  Hence I did not notice the compilation errors.
    
    Fixing them as we come across them now.

Diff:
---
 libgcc/unwind-dw2-fde-dip.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libgcc/unwind-dw2-fde-dip.c b/libgcc/unwind-dw2-fde-dip.c
index 31fb1548005..9f88267f675 100644
--- a/libgcc/unwind-dw2-fde-dip.c
+++ b/libgcc/unwind-dw2-fde-dip.c
@@ -90,7 +90,7 @@
 # define __RELOC_POINTER(ptr, base) ((ptr) + (base))
 #endif
 
-static const fde * _Unwind_Find_registered_FDE (void *pc, struct dwarf_eh_bases *bases);
+static const fde * _Unwind_Find_registered_FDE (_Unwind_Address pc, struct dwarf_eh_bases *bases);
 
 #define _Unwind_Find_FDE _Unwind_Find_registered_FDE
 #include "unwind-dw2-fde.c"
@@ -451,7 +451,7 @@ _Unwind_IteratePhdrCallback (struct dl_phdr_info *info, size_t size, void *ptr)
 }
 
 const fde *
-_Unwind_Find_FDE (void *pc, struct dwarf_eh_bases *bases)
+_Unwind_Find_FDE (_Unwind_Address pc, struct dwarf_eh_bases *bases)
 {
   struct unw_eh_callback_data data;
   const fde *ret;


More information about the Gcc-cvs mailing list