From patchwork Fri Apr 5 18:13:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iain Sandoe X-Patchwork-Id: 88113 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 11A7938460A3 for ; Fri, 5 Apr 2024 18:13:56 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by sourceware.org (Postfix) with ESMTPS id 5DC793858D34 for ; Fri, 5 Apr 2024 18:13:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5DC793858D34 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5DC793858D34 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::22f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712340810; cv=none; b=NZol+Kqj5faj/MIxh9xKGtBNViDeWxAOBTCfSeiRc3P+F9x10Ses1LQhNCBi5NnKj1/O7D6esI5ASd37K5Zpk05g/lRWEKY/KobjAGQw5PhFAR1ANY0kplI9eAPHn56sz176UHtIcFBg6StolbuzlfKVHEXuSawFDPnRUePwz+o= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712340810; c=relaxed/simple; bh=Su2Uqj91caiZZCGWyXv4c7WfBQiLs9LlaVTDVJ57FpA=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=NkJ9jv6hnX+hPerq7MA6Sr6+mq+LiTdt1lMyg5YDQ0YDqK9TYMHVcZQHzrA8WQOTd435k5jNutYVmZzawKkVJfqzY0akFdKg3oCNqeBFBTVZtaRi5g32qUAjYsEEE8FV2X+UGzxgeRwCfsutv1G384PJ1UkVbK6ilWhmnmET0A4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2d476d7972aso32029821fa.1 for ; Fri, 05 Apr 2024 11:13:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712340806; x=1712945606; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:reply-to:message-id:date :subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=FXHfA6l2hDH3hTS/MYqoFScsw3jgWXn0cVu3A45MecQ=; b=PSr4KZbJQdIhEP9JBlX1Kh2TDlm3AOBXhOouFu1kUKzx/bWseqDi5ubArjz2wEeCHg N5G6UYbxcFGW+lE30LFuL+aVRg1Opac6MT9kp/qC1iA5cyB1XnrZep/8pFP9CvafOhfV CjqE928MU/frf9jvAFYXsF1HYD0jDPcyemeGcGZm9vMt2Dmh2N5qZFMV8tnM6ZPxlIq9 EgUm5riamQy45Jb56xg0258tqJRaS1cUdEN7LJ00Co5oLLS7qAA7JuYxeLbMCfTHw5C8 vhWTtXKGBlggg4MHHvgqkFDeuTWgdgOYlK1sAERIQv1VX8FWGJIgi9SSKq2XMVB2affO PQDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712340806; x=1712945606; h=content-transfer-encoding:mime-version:reply-to:message-id:date :subject:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=FXHfA6l2hDH3hTS/MYqoFScsw3jgWXn0cVu3A45MecQ=; b=ljb8TNvo7iYZ/A1R5cKoHRtPWK/0cRBKzCWZzQzU43/8v1WqDX5lemsjGzKB3IvWFt XH1m512SmMxsPNweFhmgxZT59Yx9ki+phisVlZ8Ezcm18J5iCZVd6sNjO7I8CH0dI+NL gh2O7tJsNS/qcccWT2bcdJLHwc6wlqJyK3j4BtD08zv9KeAlrFCB4fG+NEMgZ1ZU1BzF OELvCUszXMAEiY/jJaQwTdfvSCwdnMyiZ/fDHO1mwtbDX/Wl22u2n6LXPGULV4gtYTNE gxlKsSQQ5N+/NsrYc48N+xKKsieut9sS7QaQauaydK/K0pkaFLbS0fSd1YmNDu18GBWc i6lA== X-Gm-Message-State: AOJu0YzIJp5GJkdRaxLLFkLs0cQt3tIMqVSG+Xgu7fySwPiQl0OqiCI+ 0hGoS0dY+qTx0uTWrsy2MY/lRyJMD931jJXrWXmwMQTKlr9fONgrRlUbjL7S X-Google-Smtp-Source: AGHT+IGxkFUgB1jkq8TYaBSCr2T6Xr9JuEuVfmenPcBAyIKrynNzfIupBbVMSK/HerkNLf9q2NBAsQ== X-Received: by 2002:a2e:9983:0:b0:2d6:c252:27fa with SMTP id w3-20020a2e9983000000b002d6c25227famr2173491lji.37.1712340805349; Fri, 05 Apr 2024 11:13:25 -0700 (PDT) Received: from localhost.localdomain (host81-138-1-83.in-addr.btopenworld.com. [81.138.1.83]) by smtp.gmail.com with ESMTPSA id l16-20020a05600c4f1000b00413eb5aa694sm3812658wmq.38.2024.04.05.11.13.24 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 05 Apr 2024 11:13:24 -0700 (PDT) From: Iain Sandoe X-Google-Original-From: Iain Sandoe To: gcc-patches@gcc.gnu.org Subject: [pushed] testsuite, Darwin: Account for block labels in function body scans. Date: Fri, 5 Apr 2024 19:13:24 +0100 Message-Id: <20240405181324.27176-1-iain@sandoe.co.uk> X-Mailer: git-send-email 2.39.2 (Apple Git-143) MIME-Version: 1.0 X-Spam-Status: No, score=-8.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: iain@sandoe.co.uk Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org tested on aarch64-apple-darwin21, pushed to trunk, thanks. Iain --- 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. gcc/testsuite/ChangeLog: * lib/scanasm.exp: Add 'LB*' to the local labels that are ignored for Darwin. Signed-off-by: Iain Sandoe --- 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