Message ID | 20230412131840.29214-1-shiyulong@iscas.ac.cn |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp320081vqo; Wed, 12 Apr 2023 06:19:29 -0700 (PDT) X-Google-Smtp-Source: AKy350aFkRuiUeIVlYBAqPBPr+AJinpXkmyGLhJ23A/imXTAfrlzuLKmiT/+vensacZGPfc4Xz6x X-Received: by 2002:a17:907:84c:b0:94a:7da2:d339 with SMTP id ww12-20020a170907084c00b0094a7da2d339mr11563764ejb.26.1681305569351; Wed, 12 Apr 2023 06:19:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681305569; cv=none; d=google.com; s=arc-20160816; b=fV/kk0p7eusXAfs3CClptiePLt//XmWtcJc3zpE+VAGmBY5dzJZ6lNLtjlmms00eKx Qf+3SEDyyznjHydfgKdvv9r5Y5HU6Er/yCZLxMzvEokzLihpJyBmoKGN3pHFC53iStEJ 6XKPUrBnnKLjr+18jVqBFR9FG1AM+LbPqPfKkkc/Mbg8muwTyWOXdzpmPJrF5N9HlVPO CDmeQd3lz0PuYuNvOJr7IGbpGC/+s0jLGpiishS23U0Lppw5DkqiWn9yCBIoVEm/PCAR E8nn32EvxKStsSljiFmeHqjEsqvyjBJ0BfVnPI0lqLWCWbRRrqtkcN4kJjQ07NNMCoTh QYWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:message-id:date:subject:cc:to :from:dmarc-filter:delivered-to; bh=keDXfxV6TdH8wnMPABFXkV43FVzzIdTKWEHjSU/eJ1o=; b=SXVXDBTElRsXQu3JARi2dcFlX8S2awK6wB/Zil6/9pMTgVUOt+P0i1SfL4TFeAaGnV 4EX2FhwvVfPrZhwyuFSGcL0RE1Nke/smQENGVNKetA6Dmj0O1KbUoKS+dpDGBqY9F6Ck OUu4PcLeUmJETg0W3k2JcLTmQSAF40UEGDey33vhGXemqBuv9PJAOJs84sqEsuCklLKe FUtZ8Ii+KfUzEgqdEx9P20wcWsD+c8KlUY/AfeDzoX/DP0QoB9Gwl2dmW5Jfj2IGK5Dc kXlHstRpeduCcALRktG9RsvTRDBgLYFaDx4like0JgAQoEzpTwDcUJSZmVCk7qAID0J7 tZ2w== ARC-Authentication-Results: i=1; mx.google.com; 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 sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id vr9-20020a170907a50900b0094d51e58455si4926143ejc.354.2023.04.12.06.19.29 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Apr 2023 06:19:29 -0700 (PDT) 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; 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 CF2EE385773F for <ouuuleilei@gmail.com>; Wed, 12 Apr 2023 13:19:22 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from cstnet.cn (smtp25.cstnet.cn [159.226.251.25]) by sourceware.org (Postfix) with ESMTP id 23D753858D28 for <gcc-patches@gcc.gnu.org>; Wed, 12 Apr 2023 13:18:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 23D753858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=iscas.ac.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=iscas.ac.cn Received: from localhost.localdomain (unknown [43.139.163.53]) by APP-05 (Coremail) with SMTP id zQCowACnlxS7rzZkvYGAEQ--.13369S2; Wed, 12 Apr 2023 21:18:52 +0800 (CST) From: shiyulong@iscas.ac.cn To: gcc-patches@gcc.gnu.org Cc: palmer@dabbelt.com, kito.cheng@sifive.com, jim.wilson.gcc@gmail.com, wuwei2016@iscas.ac.cn, jiawei@iscas.ac.cn, shihua@iscas.ac.cn, dje.gcc@gmail.com, mirimmad@outlook.com, pinskia@gmail.com, jeffreyalaw@gmail.com, dmalcolm@redhat.com, yulong <shiyulong@iscas.ac.cn> Subject: [PATCH V5] Testsuite: Fix a redefinition bug for the fd-4.c Date: Wed, 12 Apr 2023 21:18:40 +0800 Message-Id: <20230412131840.29214-1-shiyulong@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: zQCowACnlxS7rzZkvYGAEQ--.13369S2 X-Coremail-Antispam: 1UD129KBjvdXoWrtw1rZF4UAw1fKF13tr4Utwb_yoWfXFgEvr y5Z397GrW8Crn7CFs5Wr48CFWvqa1UXr1fWF4qkFnakrsxtan8Cw4DCryUZryUCrW5AFyf KrsIvFySv3s0gjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb-xFF20E14v26r4j6ryUM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr0_ Cr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjcxK6I8E87Iv6xkF7I0E14v26rxl6s 0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xII jxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr 1lF7xvr2IYc2Ij64vIr41lF7I21c0EjII2zVCS5cI20VAGYxC7M4IIrI8v6xkF7I0E8cxa n2IY04v7M4kE6xkIj40Ew7xC0wCY02Avz4vEOx0_Xr4l42xK82IYc2Ij64vIr41l4I8I3I 0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWU GVWUWwC2zVAF1VAY17CE14v26r1q6r43MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI 0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r4j6F4UMIIF0xvE42xK8VAvwI8IcIk0 rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r 4UJbIYCTnIWIevJa73UjIFyTuYvjfUYtC7UUUUU X-Originating-IP: [43.139.163.53] X-CM-SenderInfo: 5vkl53porqwq5lvft2wodfhubq/ X-Spam-Status: No, score=-13.0 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, 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> 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?1762976668821762479?= X-GMAIL-MSGID: =?utf-8?q?1762976668821762479?= |
Series |
[V5] Testsuite: Fix a redefinition bug for the fd-4.c
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
shiyulong@iscas.ac.cn
April 12, 2023, 1:18 p.m. UTC
From: yulong <shiyulong@iscas.ac.cn>
This patch fix a redefinition bug.
There are have a definition about mode_t in the fd-4.c, but it duplicates the definition in types.h that be included by stdio.h.
Thanks to Jeff Law for reviewing the previous version.
gcc/testsuite/ChangeLog:
* gcc.dg/analyzer/fd-4.c: delete the definition of mode_t.
---
gcc/testsuite/gcc.dg/analyzer/fd-4.c | 5 -----
1 file changed, 5 deletions(-)
Comments
On 4/12/23 07:18, shiyulong@iscas.ac.cn wrote: > From: yulong <shiyulong@iscas.ac.cn> > > This patch fix a redefinition bug. > There are have a definition about mode_t in the fd-4.c, but it duplicates the definition in types.h that be included by stdio.h. > Thanks to Jeff Law for reviewing the previous version. > > gcc/testsuite/ChangeLog: > > * gcc.dg/analyzer/fd-4.c: delete the definition of mode_t. This appears to be exactly the same as the prior version. Ultimately David Malcolm needs to make a decision on whether or not to accept this patch as it's a patc for the analyzer's testsuite. David -- comments? jeff
diff --git a/gcc/testsuite/gcc.dg/analyzer/fd-4.c b/gcc/testsuite/gcc.dg/analyzer/fd-4.c index 994bad84342..9ec015679e9 100644 --- a/gcc/testsuite/gcc.dg/analyzer/fd-4.c +++ b/gcc/testsuite/gcc.dg/analyzer/fd-4.c @@ -13,11 +13,6 @@ int read (int fd, void *buf, int nbytes); #define O_WRONLY 1 #define O_RDWR 2 -typedef enum { - S_IRWXU - // etc -} mode_t; - int creat (const char *, mode_t mode); void