]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libgcc: Fix -Wint-conversion warning in find_fde_tail
authorFlorian Weimer <fweimer@redhat.com>
Tue, 11 Jul 2023 04:19:39 +0000 (06:19 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 11 Jul 2023 04:19:39 +0000 (06:19 +0200)
Fixes commit r14-1614-g49310a99330849 ("libgcc: Fix eh_frame fast path
in find_fde_tail").

libgcc/

PR libgcc/110179
* unwind-dw2-fde-dip.c (find_fde_tail): Add cast to avoid
implicit conversion of pointer value to integer.

libgcc/unwind-dw2-fde-dip.c

index 4e0b880513f3e57a76f1422fb89fc78a5d9fd370..28ea0e64e0e8d8c1faf52194a78cfc98398eceb8 100644 (file)
@@ -403,7 +403,7 @@ find_fde_tail (_Unwind_Ptr pc,
         BFD ld generates.  */
       signed value __attribute__ ((mode (SI)));
       memcpy (&value, p, sizeof (value));
-      eh_frame = p + value;
+      eh_frame = (_Unwind_Ptr) (p + value);
       p += sizeof (value);
     }
   else