[pushed] testsuite, Darwin: Account for block labels in function body scans.

Message ID 20240405181324.27176-1-iain@sandoe.co.uk
State Committed
Commit 75b49c0e9012f5ecef0d32f3f6a0d8da66517576
Series [pushed] testsuite, Darwin: Account for block labels in function body scans. |


Context Check Description
linaro-tcwg-bot/tcwg_gcc_build--master-arm warning Patch is already merged
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 warning Patch is already merged

Commit Message

Iain Sandoe April 5, 2024, 6:13 p.m. UTC
  tested on aarch64-apple-darwin21, pushed to trunk, thanks.

--- 8< ---

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.


	* 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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/gcc/testsuite/lib/scanasm.exp b/gcc/testsuite/lib/scanasm.exp
index 741a5a048b8..6cf9997240d 100644
--- a/gcc/testsuite/lib/scanasm.exp
+++ b/gcc/testsuite/lib/scanasm.exp
@@ -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