Message ID | 20230228184958.4992D20438@pchp3.se.axis.com |
---|---|
State | Repeat Merge |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3190688wrd; Tue, 28 Feb 2023 10:50:43 -0800 (PST) X-Google-Smtp-Source: AK7set9Rf6qUTeDBAIFLZwuSMMH7VhTSy6l1H6EkTrFK2Nx4LaqTp249Tti5ZbH9noMtTZFklZEK X-Received: by 2002:a17:906:3848:b0:8b1:7b5e:4a74 with SMTP id w8-20020a170906384800b008b17b5e4a74mr3779473ejc.37.1677610243135; Tue, 28 Feb 2023 10:50:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677610243; cv=none; d=google.com; s=arc-20160816; b=b1/FE4r6LPn9wB/qkN9nLuYVyd8lCtFvG3BxMKpBmjWA6KyTdfzNnbuERazKKikNNm +Y8mps+v4rGGOxpRQHlXx9LX+Sn0ZovcaXeaKjLF6SfTofHgvxalNxSkEwcxljckqqE2 ycLaHFN0vdIUYOkRIFU3dHHRpqugjXOOpL25rDpndzMsCCSA1vy991vU0nUje6Euds1E oOSLNKCdM3wv9NWuG322BzRYjspiUBbr65NAnDAhCIk9RaDIJuCYaj3hWlMdlQA31nux EN1Y13RDTUAq95AN9M3RSENW7v1zy6fmPMxIm+z0jmYO0zNxoQLnbTXROSWoXTLDo9HE d3nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:date:message-id :content-transfer-encoding:mime-version:subject:cc:to:dmarc-filter :delivered-to:dkim-signature:dkim-filter; bh=l304sRblOdy1REysji+cb8yzsUk4POP2GrYB3w2L/Gk=; b=eenwC4lmDqyudPrSHQzfX7VswAk33JLbXUCkQy92EhG0TdhwPbrdIvK4gDS2iyuMdb lVEevgzoUKQSwOAEUTNS4UXwKIlNqpXH6zcRTJC1KheUlaSbCLyt7lfeMapPS9OArBk6 Z/OIo8VDPorRAwwnTuIwFZGFRqSP7puo25ZpCbXL4eZt2QuEQuWAkBqIk5jA7L5PaoGr 4PbljJ3KdE9zMExH1SootdkkpXh3vp4J/83wAngW4P8ShNqzn6aVAZYZl0qvjWJqpRNh W/rXYLo/JnlClrrbQRlJ16BvN659t/kV2J9QifwyPzuKgAHTmZjfJfDjnB/2c5eGr3mU f6jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=vFe3Sc5d; 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=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id z17-20020a170906815100b008e4263a2e52si3362183ejw.228.2023.02.28.10.50.43 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 10:50:43 -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=@gcc.gnu.org header.s=default header.b=vFe3Sc5d; 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=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 29BC13858C50 for <ouuuleilei@gmail.com>; Tue, 28 Feb 2023 18:50:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 29BC13858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677610242; bh=l304sRblOdy1REysji+cb8yzsUk4POP2GrYB3w2L/Gk=; h=To:CC:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=vFe3Sc5dMp1FfnlxnM6IDGVp6iovZ3utszQUgkMVlHYCn2N5gBi3jVdFaXGwF60Zm LbhisdTmgK1OizpV8c8dPnOzXMyf/W5+cSsVskiRtFU6xCyuksOCQSN7ZMaaonSoG/ UYE0GER3nqpAXHrw/g4BTq/YP6mrijkDes/eJFlw= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp1.axis.com (smtp1.axis.com [195.60.68.17]) by sourceware.org (Postfix) with ESMTPS id A76D23858D33 for <gcc-patches@gcc.gnu.org>; Tue, 28 Feb 2023 18:49:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A76D23858D33 To: <gcc-patches@gcc.gnu.org> CC: <dmalcolm@redhat.com> Subject: [PATCH 2/2] testsuite: Fix analyzer errors for newlib-fd MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT Message-ID: <20230228184958.4992D20438@pchp3.se.axis.com> Date: Tue, 28 Feb 2023 19:49:58 +0100 X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_PASS, 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.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: Hans-Peter Nilsson via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Hans-Peter Nilsson <hp@axis.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759101838560953019?= X-GMAIL-MSGID: =?utf-8?q?1759101838560953019?= |
Series |
[1/2] testsuite: Fix analyzer errors for newlib-errno
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Hans-Peter Nilsson
Feb. 28, 2023, 6:49 p.m. UTC
Ok to commit? (After this, there's gcc.dg/analyzer/flex-without-call-summaries.c left to do.) -- >8 -- Investigating analyzer testsuite errors for cris-elf. The same are seen for pru-elf according to posts to gcc-testresults@. The test fd-access-mode-target-headers.c uses the analyzer "sm-fd" which for this use requires (e.g.) that constants O_ACCMODE, O_RDONLY and O_WRONLY are defined as literal constants. While for glibc, O_ACCMODE is defined as: #define O_ACCMODE 0003 in newlib, it's defined as: #define O_ACCMODE (O_RDONLY|O_WRONLY|O_RDWR) and the analyzer is not able to make use of an expression like this (even though O_RDONLY, O_WRONLY and O_RDWR are defined as literal constants and the whole evaluates to 3). Better do as for AIX and skip this test. testsuite: * gcc.dg/analyzer/fd-access-mode-target-headers.c: Skip for newlib targets too. --- gcc/testsuite/gcc.dg/analyzer/fd-access-mode-target-headers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Tue, 2023-02-28 at 19:49 +0100, Hans-Peter Nilsson wrote:
> Ok to commit?
OK
diff --git a/gcc/testsuite/gcc.dg/analyzer/fd-access-mode-target-headers.c b/gcc/testsuite/gcc.dg/analyzer/fd-access-mode-target-headers.c index 847d47e06342..cf273b217d17 100644 --- a/gcc/testsuite/gcc.dg/analyzer/fd-access-mode-target-headers.c +++ b/gcc/testsuite/gcc.dg/analyzer/fd-access-mode-target-headers.c @@ -1,4 +1,4 @@ -/* { dg-skip-if "" { powerpc*-*-aix* } } */ +/* { dg-skip-if "" { powerpc*-*-aix* || newlib } } */ #include <sys/stat.h> #include <fcntl.h>