https://gcc.gnu.org/g:9b216725a5b15e235e312bc042dcdee9425a51c9
commit 9b216725a5b15e235e312bc042dcdee9425a51c9 Author: Wilco Dijkstra <wilco.dijks...@arm.com> Date: Wed Jun 5 14:05:59 2024 +0100 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. (cherry picked from commit acdc9df371fbe99e814a3f35a439531e08af79e7) Diff: --- gcc/testsuite/ChangeLog.omp | 6 ++++++ gcc/testsuite/lib/scanasm.exp | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/ChangeLog.omp b/gcc/testsuite/ChangeLog.omp index 8e3f3b3743af..165591973cb0 100644 --- a/gcc/testsuite/ChangeLog.omp +++ b/gcc/testsuite/ChangeLog.omp @@ -1,5 +1,11 @@ 2024-12-18 Thomas Schwinge <tschwi...@baylibre.com> + Backported from trunk: + 2024-06-05 Wilco Dijkstra <wilco.dijks...@arm.com> + + * lib/scanasm.exp (configure_check-function-bodies): Allow single-char + function names. + Backported from trunk: 2024-08-27 Thomas Schwinge <tschwi...@baylibre.com> diff --git a/gcc/testsuite/lib/scanasm.exp b/gcc/testsuite/lib/scanasm.exp index 6cf9997240de..42c719c512c7 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.