From: Wilco Dijkstra Date: Wed, 5 Jun 2024 13:05:59 +0000 (+0100) Subject: testsuite: Improve check-function-bodies X-Git-Tag: basepoints/gcc-16~8518 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=acdc9df371fbe99e814a3f35a439531e08af79e7;p=thirdparty%2Fgcc.git testsuite: Improve check-function-bodies Improve check-function-bodies by allowing single-character function names. gcc/testsuite: * lib/scanasm.exp (configure_check-function-bodies): Allow single-char function names. --- diff --git a/gcc/testsuite/lib/scanasm.exp b/gcc/testsuite/lib/scanasm.exp index 6cf9997240d..42c719c512c 100644 --- a/gcc/testsuite/lib/scanasm.exp +++ b/gcc/testsuite/lib/scanasm.exp @@ -869,15 +869,15 @@ proc configure_check-function-bodies { config } { # Regexp for the start of a function definition (name in \1). if { [istarget nvptx*-*-*] } { set up_config(start) { - {^// BEGIN(?: GLOBAL|) FUNCTION DEF: ([a-zA-Z_]\S+)$} + {^// BEGIN(?: GLOBAL|) FUNCTION DEF: ([a-zA-Z_]\S*)$} } } elseif { [istarget *-*-darwin*] } { set up_config(start) { - {^_([a-zA-Z_]\S+):$} + {^_([a-zA-Z_]\S*):$} {^LFB[0-9]+:} } } else { - set up_config(start) {{^([a-zA-Z_]\S+):$}} + set up_config(start) {{^([a-zA-Z_]\S*):$}} } # Regexp for the end of a function definition.