]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite, Darwin: Account for block labels in function body scans.
authorIain Sandoe <iain@sandoe.co.uk>
Fri, 5 Apr 2024 09:54:58 +0000 (10:54 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Fri, 5 Apr 2024 18:10:57 +0000 (19:10 +0100)
When we have '-O3 -g' we emit a bunch of LB{B,E} local labels which
were not currently being discarded, leading to some test fails.

Fixed by adding this case to the ignored labels.

gcc/testsuite/ChangeLog:

* lib/scanasm.exp: Add 'LB*' to the local labels that are
ignored for Darwin.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/testsuite/lib/scanasm.exp

index 741a5a048b814ecf11370135ccc0ea617a18df38..6cf9997240deec274a191103d21690d80e34ba95 100644 (file)
@@ -895,7 +895,7 @@ proc configure_check-function-bodies { config } {
        # example).
        set up_config(fluff) {^\s*(?://)}
     } elseif { [istarget *-*-darwin*] } {
-       set up_config(fluff) {^\s*(?:\.|//|@)|^L[0-9ACESV]}
+       set up_config(fluff) {^\s*(?:\.|//|@)|^L[0-9ABCESV]}
     } else {
        # Skip lines beginning with labels ('.L[...]:') or other directives
        # ('.align', '.cfi_startproc', '.quad [...]', '.text', etc.), '//' or