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. -- H.J.
From 6069de0d34f37e14a8f2a66ac2c92898183f5934 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" <[email protected]> Date: Tue, 19 May 2026 05:23:26 +0800 Subject: [PATCH] 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]> --- 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 abfdd6a3a14..08dbf1a8118 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} -- 2.54.0
