Message ID | 20230322050330.31903-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:a5d:604a:0:0:0:0:0 with SMTP id j10csp2164500wrt; Tue, 21 Mar 2023 22:04:26 -0700 (PDT) X-Google-Smtp-Source: AK7set93ZFuOyH0kez9oI5sXQ7febKspk1tRnzYk9mjO6yThNMf7MAPavf8+b08c8df0TrBfNw4z X-Received: by 2002:a17:906:68cb:b0:8b1:fc:b06d with SMTP id y11-20020a17090668cb00b008b100fcb06dmr4927068ejr.77.1679461466778; Tue, 21 Mar 2023 22:04:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679461466; cv=none; d=google.com; s=arc-20160816; b=orUmhIJnrLcvn+VjcWTueZCw9RRdbn+1aKWNmUjbphtT52zpUFm3CEvebQAgjOCXVd ZqKv83qcQIlnp7FPFqRKpPvLLj7AuIjntj8C+WfR2eLjDAb1RwkLRlAamPUdGsNL+6Kt qEK8FyNwNOYSJtukUOxKJKjrOAKRd1Jma94uIFheQwPQoljKCMXMJbJifu8aAAgzQL8i o2cQocBEuuyn47ameSPBGnGcJiCC/wN0OmqqeVRZF6KeEgSDoPp9gJiQneTztJ9x+w+A hrFtdOR8sCdJF6c/q88lw390/OVwRi9ZYJJvU/uo2Mr0hTVMH8IIQCrapIBKecIirY9E 1Njg== 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=UwU37meG0GVee50n5unRuSm4QO6qlOCVCPukqDLP5Fs=; b=Z21VogJ4MiZNo6M+NCCasD5FSaVgwsUuqQK8H3Nl/ZLaFa4UHCxba0rD66V4KHqn+W /7Beu/BrwRnd+I+D6cYgv1dIG7EdLeMdq5fHvn4ZD6CsNty+x951VinzDLgtbCPkRZCs 5S0eRgzGDN/FBx7DgcZAjE8BA7Nle3YXackIbCv/K/nlxQiiv3y6Tk8X8NXyg3Q2F7cp fw+n0ojnNBo8Pw8472YJF0kVhbWBpbHm3sbKxLkwfmtGuJnXFUdA3ffD/yWCBUIIInXF r0Wnvi5QMFjgMlzYi+Qc6uFBrJ62wJ2CoEESLqlkrsxK27eXneYWYTOLeIUviTTvBOK9 3mzQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id gb34-20020a170907962200b0093a0ef38401si4562615ejc.94.2023.03.21.22.04.26 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Mar 2023 22:04:26 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 1A30A3858418 for <ouuuleilei@gmail.com>; Wed, 22 Mar 2023 05:04:21 +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 616083858D38 for <gcc-patches@gcc.gnu.org>; Wed, 22 Mar 2023 05:03:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 616083858D38 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 zQCowACnlxQwjBpkpCweCA--.54723S2; Wed, 22 Mar 2023 13:03:46 +0800 (CST) From: shiyulong@iscas.ac.cn To: gcc-patches@gcc.gnu.org Cc: andrew@sifive.com, palmer@dabbelt.com, kito.cheng@gmail.com, jim.wilson.gcc@gmail.com, wuwei2016@iscas.ac.cn, jiawei@iscas.ac.cn, shihua@iscas.ac.cn, mirimmad@outlook.com, yulong <shiyulong@iscas.ac.cn> Subject: [PATCH V3] RISC-V: Fix a redefinition bug for the fd-4.c Date: Wed, 22 Mar 2023 13:03:30 +0800 Message-Id: <20230322050330.31903-1-shiyulong@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: zQCowACnlxQwjBpkpCweCA--.54723S2 X-Coremail-Antispam: 1UD129KBjvdXoWrtw1rZF4UAw1ftw1xXF4DXFb_yoW3CFXEvr y5Z397GrW8Crs7AFs5Wr48JFWvqa1UXr1fCF4qkFnakr43tan8Cw4DCryUZryUCrW5AFWf KrsIvFyaq3s0gjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbVxFF20E14v26r4j6ryUM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr0_ Cr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVCY1x0267AKxVWxJr 0_GcWle2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E 2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJV W8JwACjcxG0xvY0x0EwIxGrwACjI8F5VA0II8E6IAqYI8I648v4I1lFIxGxcIEc7CjxVA2 Y2ka0xkIwI1lw4CEc2x0rVAKj4xxMxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r 1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CE b7AF67AKxVWUtVW8ZwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0x vE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAI cVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVWUJVW8JbIYCTnIWIevJa 73UjIFyTuYvjfUOxhLUUUUU X-Originating-IP: [43.139.163.53] X-CM-SenderInfo: 5vkl53porqwq5lvft2wodfhubq/ X-Spam-Status: No, score=-12.6 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?1761042986834654590?= X-GMAIL-MSGID: =?utf-8?q?1761042986834654590?= |
Series |
[V3] RISC-V: 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
March 22, 2023, 5:03 a.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 stdio.h.
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(-)
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