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

commit r17-589-gd8a36d622970a0486e1364d46863d2cdb478f169
Author: H.J. Lu <[email protected]>
Date:   Tue May 19 05:23:26 2026 +0800

    mingw: Check seh_endproc for function end
    
    For mingw targets, one way to identify the end of function is to check
    the .seh_endproc directive.  Extend the lib/scanasm.exp change in
    
    commit 6c9585ce44faeba5e0b6859871712f4895537d29
    Author: Saurabh Jha <[email protected]>
    Date:   Thu Oct 9 14:04:45 2025 +0000
    
        aarch64: mingw: emit seh_endproc as comment
    
    to cover all mingw targets.
    
            * lib/scanasm.exp (configure_check-function-bodies): Check
            "*-*-mingw32" instead of "aarch64*-*-mingw32".
    
    Signed-off-by: H.J. Lu <[email protected]>

Diff:
---
 gcc/testsuite/lib/scanasm.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/lib/scanasm.exp b/gcc/testsuite/lib/scanasm.exp
index abfdd6a3a14f..08dbf1a8118d 100644
--- a/gcc/testsuite/lib/scanasm.exp
+++ b/gcc/testsuite/lib/scanasm.exp
@@ -932,7 +932,7 @@ proc configure_check-function-bodies { config } {
        set up_config(end) {^\}$}
     } elseif { [istarget *-*-darwin*] } {
        set up_config(end) {^LFE[0-9]+}
-    } elseif { [istarget aarch64*-*-mingw32] } {
+    } elseif { [istarget *-*-mingw32] } {
        set up_config(end) {seh_endproc}
     } else {
        set up_config(end) {^\s*\.size}

Reply via email to