aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilco Dijkstra <wilco.dijkstra@arm.com>2024-06-05 14:05:59 +0100
committerWilco Dijkstra <wilco.dijkstra@arm.com>2024-06-05 14:10:27 +0100
commitacdc9df371fbe99e814a3f35a439531e08af79e7 (patch)
tree212154ff7b43e691566d2163541d7144c67353a4
parent58ecd2eb507ab216861408cf10ec05efc4e8344e (diff)
downloadgcc-acdc9df371fbe99e814a3f35a439531e08af79e7.zip
gcc-acdc9df371fbe99e814a3f35a439531e08af79e7.tar.gz
gcc-acdc9df371fbe99e814a3f35a439531e08af79e7.tar.bz2
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.
-rw-r--r--gcc/testsuite/lib/scanasm.exp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/testsuite/lib/scanasm.exp b/gcc/testsuite/lib/scanasm.exp
index 6cf9997..42c719c 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.