]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
mingw: Check seh_endproc for function end
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 18 May 2026 21:23:26 +0000 (05:23 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 19 May 2026 06:57:16 +0000 (14:57 +0800)
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 <saurabh.jha@arm.com>
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 <hjl.tools@gmail.com>
gcc/testsuite/lib/scanasm.exp

index abfdd6a3a14f6722e66df13169a6dfad62d9e4b6..08dbf1a8118dc0e5690529b14ac2bf8008b3b51b 100644 (file)
@@ -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}