Skip to content
Snippets Groups Projects
Commit 6f9dfb4d authored by Florian Weimer's avatar Florian Weimer
Browse files

libgcc: Fix -Wint-conversion warning in find_fde_tail

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.

(cherry picked from commit 104b0900)
parent 7302f8a2
No related branches found
No related tags found
No related merge requests found
...@@ -403,7 +403,7 @@ find_fde_tail (_Unwind_Ptr pc, ...@@ -403,7 +403,7 @@ find_fde_tail (_Unwind_Ptr pc,
BFD ld generates. */ BFD ld generates. */
signed value __attribute__ ((mode (SI))); signed value __attribute__ ((mode (SI)));
memcpy (&value, p, sizeof (value)); memcpy (&value, p, sizeof (value));
eh_frame = p + value; eh_frame = (_Unwind_Ptr) (p + value);
p += sizeof (value); p += sizeof (value);
} }
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment