https://gcc.gnu.org/g:c9b8a8fc55168ba9ec5432fc7b86621074e1b887

commit r15-7432-gc9b8a8fc55168ba9ec5432fc7b86621074e1b887
Author: Peter Bergner <berg...@linux.ibm.com>
Date:   Fri Feb 7 13:39:42 2025 -0600

    rs6000: Add cast to avoid pointer to integer comparison warning [PR117674]
    
    2025-02-07  Peter Bergner  <berg...@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.

Diff:
---
 libgcc/config/rs6000/linux-unwind.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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.  */

Reply via email to