From patchwork Sat Jan 13 13:57:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iain Sandoe X-Patchwork-Id: 187904 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2614:b0:101:6a76:bbe3 with SMTP id mm20csp769851dyc; Sat, 13 Jan 2024 05:58:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IH8RGXgsZgR+/9PQgeMF0jU6ccvAQWlMzPwt4Yyh6pNCK/nHFH7VzJULraKxNuEdoMZfPr3 X-Received: by 2002:a0c:f3cf:0:b0:681:2fe6:6dd1 with SMTP id f15-20020a0cf3cf000000b006812fe66dd1mr1850867qvm.96.1705154310599; Sat, 13 Jan 2024 05:58:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705154310; cv=pass; d=google.com; s=arc-20160816; b=nWDf+XFgzR+y7o/+YIgn0DbCBvZ+I/J7rwm47uwJsWUfC1jPZZSZM9S9WG1tZqF77p ysR8Dy0MRSaqHDj7bQngObFMKuGuR5BnC1+x7v8/7rxFT+uvT2Lw/koGbFow6jXwjS7k rvz42w840JHRg7VF+ZBeSrdnT0OHMjE7tsw4p3nxVeqYY7gMdnbUs0QE9OrPQYN1LS8r iaIbvhSAlm3i+sXONbecFLRYV09OYKsbNcFGpP314trOgmUqwGo7CRigh1FoUeA+LNcX evBPgtONK2+lwnJbY5JeBmrQqASw39i5TByLsyCHbhFPBdBV7R8YxSPzJgmotZpoIVO8 dm0w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:reply-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=0DP9xLl8UuWMiVXdB70gfHBvs0WPGgJzjOJUZfD14a4=; fh=hquFfmNSiHACMF06VYcgSDOPZqbHeYlOOHoweb40YaM=; b=L5TVK043GCFr6GwfJhCXvLQwYDHVLJTYSXOhcBiZc86XOwHuKavCN91seF2d6fuh6C 3BXMRVxd23Gncq9CjRdW5m1nXMC6rvIFbWmyFRdbVstcb6xTh1sEestcLvitxCUnYSSI +gHjb4BfQ5obeyZHTqgbAYjkVbN7grwYqURLVRAR+cmHoNUtVXqlVTxlWnmoGaLJzbgp OhPCH+A/r9HhEFx5XYqBaO/w+6KKax4rg+9tJ49mA1TBvybBBzXjwok960ZOxxSWmmjk LBY+UoewK7MVgQ5yba2ZGWIwLbvXpO2aanCCxnkra+PXkKcX/b2lISh2P0uxxnR86v8Z O9SA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Eoon+s/d"; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id t1-20020a0cc441000000b0067f0cf9a77asi4951477qvi.77.2024.01.13.05.58.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Jan 2024 05:58:30 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Eoon+s/d"; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C63153857C45 for ; Sat, 13 Jan 2024 13:58:29 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by sourceware.org (Postfix) with ESMTPS id 12FAA3858D28 for ; Sat, 13 Jan 2024 13:57:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 12FAA3858D28 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 12FAA3858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::42c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705154256; cv=none; b=FvaBCs3OBToBsapbdg5bifQWlSkdaL6tLWwDv8ra1dK2x+BWqwonGCwL2mrQ2H/WOUU/5lWlIE7ijvCjOWkjZ8sHp8JUi752cjQoP5R677Qpe9CBHpoyz57DRcrxDO8ZIDd8JHOSsKGX5DQUBHl6ZILSP0UpXOIaW13xITCKI9o= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705154256; c=relaxed/simple; bh=ZVG/KdngSDh1zDFVsx2v5lKcncmUV7lyyb+EWRHusGY=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=WrGNUShancqy+HRjN/A7WNXVHxuaYabImHajTFbQVA/GdRm9LfHYPOvdCkZq13KlSPIVke5ZN4/SkxUi77cRL2GAzUwmrn00eR2/qyDq4ALR3VBHBHtsosr9RnvO/zJphpYjvnltNyaUUt84Cv4dQbngAizNlQVKFhrh8KFftAM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-336c5b5c163so4384297f8f.1 for ; Sat, 13 Jan 2024 05:57:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705154254; x=1705759054; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0DP9xLl8UuWMiVXdB70gfHBvs0WPGgJzjOJUZfD14a4=; b=Eoon+s/dlCr2zl1qEvcQpnEEjL7S8knFPIA33/4pUkFcWmk0xdWMnsUCTGhwee0KFm TeFdxniylnVfTYp5WCU5I/BPYEXVpkTTtYjEqb8Ge2d/GiE6xVuoffkXl2Ea1kDibvx4 qLFCT6j1lXfVoc/6HM4+JIZeJhxPUJE1j/DTGRpJ+EtLkXXrT1VM1khe7TuH0Y6Qeb07 EgrDr/pWMEBRIC0eV7ytTC3E+0lhWwFfF1QLPKt+DXhiM4GatPxPeOqJgKW6liyEXobK DotpDGbFk1sqSKVaIIc9iotf6hKiTsjXrZiZzDtXljXktAuxe3SfZjJZBha2dGuIDQzQ FS8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705154254; x=1705759054; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=0DP9xLl8UuWMiVXdB70gfHBvs0WPGgJzjOJUZfD14a4=; b=apCLwko21eZ5opLQ3iPfZydfgT/YaA6cT9KO9XmM1JsBWu1o4YIP7aDBq0UQSY6NH9 n1POUo9LbywMEQ6rkyhf6NyoGazCBn2SiA0nrSUm+TSqYcMCebFbfVQli0a9Tt3vwD9T oU/s5V4wlOuhMCL8LddZ7NBqLsOm8PK7YamSgpygrjqwr/PMf+H6leCW5afoeDjq11G3 asn3RRwuccgDGCSt6gJyPWI2fqG0YF0up3j4UPXfzpHxiELobXbAppWXTnMj/aIHqG6/ FE1HUULULEWyka/lnjeSlavhccJYrGebvBiRZEORTYhpg8urNfpEc605Z9SVAWvT+eqR tZUw== X-Gm-Message-State: AOJu0YwD07/vXwW9Zd+BeAFMVHPbYfYRHXG+05zWLobfHcIJKuGY3o7f Zj91yvaNe/0icByS9e6il+o= X-Received: by 2002:adf:eccf:0:b0:336:8767:2e2f with SMTP id s15-20020adfeccf000000b0033687672e2fmr1316784wro.7.1705154253440; Sat, 13 Jan 2024 05:57:33 -0800 (PST) Received: from localhost.localdomain (host81-138-1-83.in-addr.btopenworld.com. [81.138.1.83]) by smtp.gmail.com with ESMTPSA id h7-20020adff4c7000000b0033677aae2e2sm6807083wrp.107.2024.01.13.05.57.32 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sat, 13 Jan 2024 05:57:33 -0800 (PST) From: Iain Sandoe X-Google-Original-From: Iain Sandoe To: dmalcolm@redhat.com, gcc-patches@gcc.gnu.org Subject: [PATCH 2/4] testsuite, jit: Handle whitespace in test-link-section-assembler.c. Date: Sat, 13 Jan 2024 13:57:16 +0000 Message-Id: <20240113135718.57643-3-iain@sandoe.co.uk> X-Mailer: git-send-email 2.39.2 (Apple Git-143) In-Reply-To: <20240113135718.57643-2-iain@sandoe.co.uk> References: <20240113135718.57643-1-iain@sandoe.co.uk> <20240113135718.57643-2-iain@sandoe.co.uk> 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, T_SCC_BODY_TEXT_LINE 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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787983886381117231 X-GMAIL-MSGID: 1787983886381117231 Darwin has a different .section directive that has more fields and uses different whitespace. Amend the whitespace in the scan-asm to be more flexible. gcc/testsuite/ChangeLog: * jit.dg/test-link-section-assembler.c: Accept any whitespace between the .section directive and its arguments. Signed-off-by: Iain Sandoe --- gcc/testsuite/jit.dg/test-link-section-assembler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/jit.dg/test-link-section-assembler.c b/gcc/testsuite/jit.dg/test-link-section-assembler.c index a90b00e9a82..a78e9fd26ef 100644 --- a/gcc/testsuite/jit.dg/test-link-section-assembler.c +++ b/gcc/testsuite/jit.dg/test-link-section-assembler.c @@ -34,4 +34,4 @@ create_code (gcc_jit_context *ctxt, void *user_data) } /* { dg-final { jit-verify-output-file-was-created "" } } */ -/* { dg-final { jit-verify-assembler-output ".section .my_section" } } */ +/* { dg-final { jit-verify-assembler-output ".section\\s.my_section" } } */