[PATCH] gas: sframe: Clear caller's warning flag, not the pointer

Pietro Monteiro pietro@sociotechnical.xyz
Wed Nov 25 00:18:21 GMT 2026


sframe_xlate_do_escape_cfa_expr set its caller_warn_p parameter to
false instead of storing false through it, so the local pointer was
nulled and the caller's flag left untouched.  This was harmless only
because the caller initializes the flag to false.

This was found during testing of the autoconf 2.73 upgrade, which uses
C23 by default if the compiler supports it, and building with GCC 14.2,
which is affected by
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112556.

Signed-off-by: Pietro Monteiro <pietro@sociotechnical.xyz>
---
 gas/gen-sframe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gas/gen-sframe.c b/gas/gen-sframe.c
index 031421d8ab7..b57a7a53626 100644
--- a/gas/gen-sframe.c
+++ b/gas/gen-sframe.c
@@ -1810,7 +1810,7 @@ sframe_xlate_do_escape_cfa_expr (struct sframe_xlate_ctx *xlate_ctx,
       cur_fre->cfa_deref_p = true;
       cur_fre->merge_candidate = false;
       /* Done handling here.  */
-      caller_warn_p = false;
+      *caller_warn_p = false;
 
       return err;
     }
-- 
2.56.1



More information about the Binutils mailing list