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>
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}