Message ID | 20221013140152.29237-1-shiyulong@iscas.ac.cn |
---|---|
State | Accepted, archived |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp295471wrs; Thu, 13 Oct 2022 07:03:03 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7yBsj4lxdm0z8ztc4TxTSROq/qu1Dgw/YMlJztrMyQyyizc9AydRHu6evCe0VqLjwZIv8X X-Received: by 2002:a05:6402:5485:b0:459:147a:d902 with SMTP id fg5-20020a056402548500b00459147ad902mr33151458edb.263.1665669782896; Thu, 13 Oct 2022 07:03:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665669782; cv=none; d=google.com; s=arc-20160816; b=XqcKRIV/3BuUjca92ImgABS/iNAd11R0J5i1PTxMJIB0abtkUgQQGEEXL81vXX/0IH G8MeMozgiIv5XlUBjoduGYUdELeT4QRiXbyVP3vFdg+Os28BtQ2bGEYXcVcpF+NVX935 IAc6idSk4biaSyeWDHbGiHOxX3PQzfu0fVLjoT5mo+eN/QzcWQm/znhH03QjhR5M4CvX QYDHc+V+blqTqqsSQoMHyFyClIU996AlvGjuy4QpD9RhEh1IZWKuJKXQeAQZoGLEu2Sf qzAMs4AHGU83cTbb9RWWGLiXjwkC9mpEMii20yXS4IQ6fy6QTAUbUnwzplBLi26sES/S fHeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:message-id:date:subject:to:from :dmarc-filter:delivered-to; bh=In8pWNir4KUbpTYZrSZZZ2w60i+K8SvD+C5yegowk/0=; b=HZJbcY+bSoOlBjapQDRd9upyel6iN8Ac9wFAMJoKoy4QmYOghrINstwBf7rQINzMyA gy9SdZkuVy1q9eRFYaLxNyUtPEMs21nu1ucsFkP61n1q8FTO4xN7u9DDjSWmf+CKZdcj arGaDD4t2YtR6TpouEVMqUG9qjnwgnKB7RpPXYssPMDqKk7fyYDRNKLfOs77SZhkXLds Os4bi1WHKDmMhRr3CmTYlCArd/ASv9zcEeswFmaI3BJlIdZRJvUh7sSTCvlT8Nrc4nmG v+mDk+V86t7hAfnMeChvJjo7h2DYaWbQEGpCSuyW6z53Y06dLQ7BwJ3fr4TZjbQC/ttG iUmQ== 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 z18-20020a170906241200b00740110c599bsi15247527eja.146.2022.10.13.07.03.02 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Oct 2022 07:03:02 -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 EBABB3853830 for <ouuuleilei@gmail.com>; Thu, 13 Oct 2022 14:02:56 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from cstnet.cn (smtp21.cstnet.cn [159.226.251.21]) by sourceware.org (Postfix) with ESMTP id A164B3858C56 for <gcc-patches@gcc.gnu.org>; Thu, 13 Oct 2022 14:02:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A164B3858C56 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 [47.88.16.30]) by APP-01 (Coremail) with SMTP id qwCowADX3Y1pGkhj_y0CBQ--.41558S2; Thu, 13 Oct 2022 22:02:21 +0800 (CST) From: shiyulong@iscas.ac.cn To: gcc-patches@gcc.gnu.org Subject: [PATCH V1] RISC-V: Fix a redefinition bug for the fd-4.c Date: Thu, 13 Oct 2022 22:01:52 +0800 Message-Id: <20221013140152.29237-1-shiyulong@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: qwCowADX3Y1pGkhj_y0CBQ--.41558S2 X-Coremail-Antispam: 1UD129KBjvdXoWrtw1rZF4UAw1fKFW7Cw47CFg_yoWfArcEvr y5Z3ykJrW8Cws2yFs5Wr4UJF4vqa1UXr1fAF4qkFsIkrsxtan8C3yDCryUZry8urW5AF93 KrsIqFy3A3s0gjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbV8FF20E14v26r4j6ryUM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr0_ Cr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjcxK6I8E87Iv6xkF7I0E14v26rxl6s 0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xII jxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr 1lF7xvr2IYc2Ij64vIr41lF7I21c0EjII2zVCS5cI20VAGYxC7M4IIrI8v6xkF7I0E8cxa n2IY04v7M4kE6xkIj40Ew7xC0wCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJV W8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF 1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6x IIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvE x4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvj DU0xZFpf9x0JUm2NtUUUUU= X-Originating-IP: [47.88.16.30] X-CM-SenderInfo: 5vkl53porqwq5lvft2wodfhubq/ X-Spam-Status: No, score=-12.9 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> Cc: andrew@sifive.com, yulong <shiyulong@iscas.ac.cn>, mirimmad@outlook.com, kito.cheng@gmail.com, jiawei@iscas.ac.cn, wuwei2016@iscas.ac.cn, dje.gcc@gmail.com, shihua@iscas.ac.cn 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?1746581357954675795?= X-GMAIL-MSGID: =?utf-8?q?1746581357954675795?= |
Series |
[V1] 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
Oct. 13, 2022, 2:01 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 stdio.h.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 842a26b4364..db342feb6ee 100644 --- a/gcc/testsuite/gcc.dg/analyzer/fd-4.c +++ b/gcc/testsuite/gcc.dg/analyzer/fd-4.c @@ -12,11 +12,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