]> gcc.gnu.org Git - gcc.git/commitdiff
testsuite: Improve check-function-bodies
authorWilco Dijkstra <wilco.dijkstra@arm.com>
Wed, 5 Jun 2024 13:05:59 +0000 (14:05 +0100)
committerWilco Dijkstra <wilco.dijkstra@arm.com>
Wed, 5 Jun 2024 13:10:27 +0000 (14:10 +0100)
Improve check-function-bodies by allowing single-character function names.

gcc/testsuite:
* lib/scanasm.exp (configure_check-function-bodies): Allow single-char
function names.

gcc/testsuite/lib/scanasm.exp

index 6cf9997240deec274a191103d21690d80e34ba95..42c719c512c75e7227084c93838af5897544f8b3 100644 (file)
@@ -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.
This page took 0.063401 seconds and 5 git commands to generate.