https://gcc.gnu.org/g:5a4a852f7867ff2b307fc12477cb56ef9dfd9e5d

commit r15-11580-g5a4a852f7867ff2b307fc12477cb56ef9dfd9e5d
Author: Christophe Lyon <[email protected]>
Date:   Fri Sep 18 15:58:02 2026 +0200

    Fix check for working assembler --gdwarf-4 option
    
    The code fragment used to check for --gdwarf-4 option with the APP
    marker ends with a hard-coded 'ret' instruction, which is not supported
    by all architectures (e.g. arm).  Replace it with $insn.
    
    gcc/ChangeLog:
    
            * configure.ac: Replace 'ret' with '$insn'.
            * configure: Regenerate.
    
    (cherry picked from commit 316c6dddbb4858c2c34b58b3bddc6b85923d2799)

Diff:
---
 gcc/configure    | 2 +-
 gcc/configure.ac | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/configure b/gcc/configure
index 16965953f051..9e9577344ca4 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -32026,7 +32026,7 @@ foo:
        .file 1 \"foo.c\"
        $insn
        .file 2 \"foo.h\"
-       ret
+       $insn
 "
    dwarf4_success=no
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 
with the APP marker" >&5
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 9f67e62950a4..8296fa23d8ba 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -5932,7 +5932,7 @@ foo:
        .file 1 \"foo.c\"
        $insn
        .file 2 \"foo.h\"
-       ret
+       $insn
 "
    dwarf4_success=no
    gcc_GAS_CHECK_FEATURE([--gdwarf-4 with the APP marker],

Reply via email to