From patchwork Tue Nov 28 12:56:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 170758 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp3894159vqx; Tue, 28 Nov 2023 04:56:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IFKS1svsavKnrr1AGbQrqufankwWTJcaa5uZGzxQQsQb22PeIN7cMo8HhuUS1Zfdm0W1skB X-Received: by 2002:a05:620a:6189:b0:77d:7400:7086 with SMTP id or9-20020a05620a618900b0077d74007086mr15390919qkn.78.1701176190748; Tue, 28 Nov 2023 04:56:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701176190; cv=pass; d=google.com; s=arc-20160816; b=mrU07auKUlLu1AlqxE84Y9Vabbno5wl006/59YqRGWmj9c45mBJvU1YjXI2rL2lj1+ opc/OUMiGqomCJNdPq4L+YoHv6BuAbrJhY4OQGjNxFxeDp2ZkUKNXsw+Qe/UqPCIuRaR VI/eKqnAUiDbNs0Z9vjPcEq1karY+ZCGBcC8e8h8h8bNRUk6YtXJ/WFPZ2LeGQ/oqvVY OD6EdjcnZTXFxTw37x3DcgIMRiF85ghhy3BrEYDGy6f8tvV4y41+TKrWKuaq6JHJfRLR KU00mFnOwedtSh64HdNCmkbQE7ocM2gEKL6ad7d4KwelKOxOGo0HkIeUf3ZBOMTgHzex vVmQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version:user-agent :message-id:date:subject:cc:to:from:dkim-signature:arc-filter :dmarc-filter:delivered-to; bh=4JnEsZjzDoBA2miiAt3U94dCgK5Nzjih6xRlMaVc8kI=; fh=op6X8wSOpXkda2rqk0yAxGtFy/oEn1C7A77CNK6tlcI=; b=sYS5Qu0IJEXQ2pOEzw+G1STD7HPO6AaphNNIfpB1/67rur6WkJvekcVbv5aTKaJ2WL a3fWFoYbtc0F9UVrY740ZP8ioVU/9uTbqEfISaYir9dqdeB1Mt77E8LnKFo0mKiStWps SOZvaWTTm08gC/+aKYg3lJG7gk4R6Xo2A+uKB40j3iCaNaq6ghFG9a5PiypOmMRKNhny 6x6glzk1MeDSRpQLzWf5AdEBgxDBC7+vIpS89U4fN6aQ5i7zbeS2uc9cBerLSu6zuFs3 WaqE13CNrBOqaUEyIREbBllXfWuzoaLAPFNyMfSCgRl0ooj1AMhmXExLFI1WhvnQSGnu iGPA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cebitec.uni-bielefeld.de header.s=20200306 header.b=VeLDtR0J; 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" Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id x20-20020a05620a0ed400b0077dbf723ceesi1003077qkm.439.2023.11.28.04.56.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 04:56: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=@cebitec.uni-bielefeld.de header.s=20200306 header.b=VeLDtR0J; 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8482E3881D27 for ; Tue, 28 Nov 2023 12:56:30 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp.CeBiTec.Uni-Bielefeld.DE (smtp.CeBiTec.Uni-Bielefeld.DE [129.70.160.84]) by sourceware.org (Postfix) with ESMTPS id 5EE203858C50 for ; Tue, 28 Nov 2023 12:56:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5EE203858C50 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=CeBiTec.Uni-Bielefeld.DE Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cebitec.uni-bielefeld.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5EE203858C50 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=129.70.160.84 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701176167; cv=none; b=ZPBietNv+jyvIvDn5MQhigwqFWSMCTHVDFcWBHL7lkEPzNsTkwNV53PzDIM3kE5Vrp/DK1Xfg6MPNYyNzPQmfjNqBlAhBeM76mxlc8sMd8vLKLu+CV8wU6k+i4AijL8qNrrvZFKVpeCBx0CjZ1conR0oJoimHQc6qyU9G9VcETU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701176167; c=relaxed/simple; bh=VWqXio69jyxAKOHlsBhxicOayL009AzQCrKoeMAhoHU=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=osXJeqldFU6HbGMcw9Ba3fBLKJZMy9Z4Brw4XQduIB89eqSgovE7tOM6m46DOAru9hThxIqjSWIliHVLYItze37rrK+hbcgV8NNQ5xcIcxwjEW5kKX1umqVpPczOq2AbOe2GpVcuohfZ2DoRWTuzRnE5zgNMmsbQvZsVBA56TmA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from localhost (localhost [127.0.0.1]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 47189C0818; Tue, 28 Nov 2023 13:56:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= cebitec.uni-bielefeld.de; h=content-type:content-type :mime-version:user-agent:message-id:date:date:subject:subject :from:from:received:received; s=20200306; t=1701176162; bh=VWqXi o69jyxAKOHlsBhxicOayL009AzQCrKoeMAhoHU=; b=VeLDtR0JIQ5Znx8QovcdU fRzwUT5m2+krrsepOhN3/J4gkfr0iIvJ7Ir5L7uKs35Ov9JqmUSmjdeukeo55xv+ ySxvODBl7/mykgKoUpgeNZPa9RSEItyt/shrtgkejf6mCcLXElKQkx+nxXgGUdo5 /tkWkKbPDeH9G53M9sWqHXs5Q+nidajXM6HZyIjdJ63MVIvl0CPVkTGvl1vVzq47 Sk6OjqmG7bWCsZwutP7zEDuLjUuYLP/HXQ3d6KjRBNjVMFq4GVeQARVjUWNyQWjw RNVMBXd/jWd4JcuRLQyX2mp8Sh2U8Gv25qir5UkRfMXWAKxJzEd+gHfPZalRfLqW w== X-Virus-Scanned: amavisd-new at cebitec.uni-bielefeld.de Received: from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (smtp.cebitec.uni-bielefeld.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 8mcJKsQqYysu; Tue, 28 Nov 2023 13:56:02 +0100 (CET) Received: from manam.CeBiTec.Uni-Bielefeld.DE (p4fddb508.dip0.t-ipconnect.de [79.221.181.8]) (Authenticated sender: ro) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPSA id C0440C0551; Tue, 28 Nov 2023 13:56:02 +0100 (CET) From: Rainer Orth To: gcc-patches@gcc.gnu.org Cc: Omar Sandoval Subject: [COMMITTED] testsuite: Fix gcc.dg/pr111409.c on Solaris/SPARC with as Date: Tue, 28 Nov 2023 13:56:02 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.90 (usg-unix-v) MIME-Version: 1.0 X-Spam-Status: No, score=-3791.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, 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: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783812525558116795 X-GMAIL-MSGID: 1783812525558116795 gcc.dg/pr111409.c FAILs on Solaris/SPARC with the native as: FAIL: gcc.dg/pr111409.c scan-assembler-times .section\\\\s+.debug_macro 1 Unlike most other ELF targets, that assembler requires the section name to be double-quoted. This patch allows for that. It also expects \t to separate .section directive and name like other similar tests, and escapes literal dots. Tested on sparc-sun-solaris2.11 (as and gas) and i386-pc-solaris2.11 (as and gas). According to gcc-testresults, the test also FAILs on powerpc-ibm-aix7.2.5.0 and hppa64-hp-hpux11.11. AIX seems to be the same issue, while HP/UX apparently has a different section syntax. Rainer # HG changeset patch # Parent fd39a5a60b8433590aee9d4e91f3683675d37a0b testsuite: Fix gcc.dg/pr111409.c on Solaris/SPARC with as diff --git a/gcc/testsuite/gcc.dg/pr111409.c b/gcc/testsuite/gcc.dg/pr111409.c --- a/gcc/testsuite/gcc.dg/pr111409.c +++ b/gcc/testsuite/gcc.dg/pr111409.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-skip-if "split DWARF unsupported" { *-*-darwin* } } */ /* { dg-options "-gsplit-dwarf -g3 -dA" } */ -/* { dg-final { scan-assembler-times {.section\s+.debug_macro} 1 } } */ -/* { dg-final { scan-assembler-not {.byte\s+0x7\s*#\s*Import} } } */ +/* { dg-final { scan-assembler-times {\.section\t"?\.debug_macro} 1 } } */ +/* { dg-final { scan-assembler-not {\.byte\s+0x7\s*#\s*Import} } } */ #define foo 1