From: Peter Bergner Date: Fri, 7 Feb 2025 19:39:42 +0000 (-0600) Subject: rs6000: Add cast to avoid pointer to integer comparison warning [PR117674] X-Git-Tag: basepoints/gcc-16~2121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9b8a8fc55168ba9ec5432fc7b86621074e1b887;p=thirdparty%2Fgcc.git rs6000: Add cast to avoid pointer to integer comparison warning [PR117674] 2025-02-07 Peter Bergner libgcc/ PR target/117674 * config/rs6000/linux-unwind.h (ppc_backchain_fallback): Add cast to avoid comparison between pointer and integer warning. --- diff --git a/libgcc/config/rs6000/linux-unwind.h b/libgcc/config/rs6000/linux-unwind.h index 97a9fbd2d1ae..6fd3c908ae84 100644 --- a/libgcc/config/rs6000/linux-unwind.h +++ b/libgcc/config/rs6000/linux-unwind.h @@ -395,7 +395,7 @@ ppc_backchain_fallback (struct _Unwind_Context *context, void *a) current = context->cfa; /* If the trace CFA is not the context CFA the backtrace is done. */ - if (arg == NULL || arg->cfa != current) + if (arg == NULL || arg->cfa != (_Unwind_Word) current) return; /* Start with next address. */