Tue Oct 28 2025
Saurabh Jha <[email protected]> wrote:
> For mingw targets, there is no way to identify the end of function using
> assembly directives right now.
> However, emitting an end of function marker now will let us modify
> check-function-bodies in scanasm.exp, which in turn enables us to write
> dg-compile tests for mingw target.
Does it mean that check-function-bodies has not been configured for
x86_64-w64-mingw32 before?
> +++ b/gcc/testsuite/lib/scanasm.exp
> @@ -885,6 +885,8 @@ proc configure_check-function-bodies { config } {
> set up_config(end) {^\}$}
> } elseif { [istarget *-*-darwin*] } {
> set up_config(end) {^LFE[0-9]+}
> + } elseif { [istarget *-*-mingw32] } {
> + set up_config(end) {seh_endproc}
In some cases, x86_64-w64-mingw32 might be configured without using SEH and it
will not emit seh_endproc. Perhaps it makes sense to apply this pattern to
aarch64-w64-mingw32 only for now.
Regards,
Evgeny