]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rs6000: Add cast to avoid pointer to integer comparison warning [PR117674]
authorPeter Bergner <bergner@linux.ibm.com>
Fri, 7 Feb 2025 19:39:42 +0000 (13:39 -0600)
committerPeter Bergner <bergner@linux.ibm.com>
Fri, 7 Feb 2025 19:40:15 +0000 (13:40 -0600)
2025-02-07  Peter Bergner  <bergner@linux.ibm.com>

libgcc/
PR target/117674
* config/rs6000/linux-unwind.h (ppc_backchain_fallback): Add cast to
avoid comparison between pointer and integer warning.

libgcc/config/rs6000/linux-unwind.h

index 97a9fbd2d1aed61a3447330e7767815d4ff3bd14..6fd3c908ae84ad3591c4b18122daa89bef58bacc 100644 (file)
@@ -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.  */