public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] libgcc: Fix -Wint-conversion warning in find_fde_tail
@ 2023-07-10 18:54 Florian Weimer
  2023-07-10 19:20 ` Jakub Jelinek
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Weimer @ 2023-07-10 18:54 UTC (permalink / raw)
  To: gcc-patches

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libgcc/unwind-dw2-fde-dip.c b/libgcc/unwind-dw2-fde-dip.c
index 4e0b880513f..28ea0e64e0e 100644
--- a/libgcc/unwind-dw2-fde-dip.c
+++ b/libgcc/unwind-dw2-fde-dip.c
@@ -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

base-commit: 1f9b18962f2d86abafbb452bf001b72edafb6eef


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] libgcc: Fix -Wint-conversion warning in find_fde_tail
  2023-07-10 18:54 [PATCH] libgcc: Fix -Wint-conversion warning in find_fde_tail Florian Weimer
@ 2023-07-10 19:20 ` Jakub Jelinek
  0 siblings, 0 replies; 2+ messages in thread
From: Jakub Jelinek @ 2023-07-10 19:20 UTC (permalink / raw)
  To: Florian Weimer; +Cc: gcc-patches

On Mon, Jul 10, 2023 at 08:54:54PM +0200, Florian Weimer via Gcc-patches wrote:
> 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.

Ok, thanks.

	Jakub


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-10 19:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-10 18:54 [PATCH] libgcc: Fix -Wint-conversion warning in find_fde_tail Florian Weimer
2023-07-10 19:20 ` Jakub Jelinek

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).