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 [thread overview]
Message-ID: <20230412131840.29214-1-shiyulong@iscas.ac.cn> (raw)
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(-)
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
--
2.25.1
next reply other threads:[~2023-04-12 13:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-12 13:18 shiyulong [this message]
2023-04-28 21:51 ` Jeff Law
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230412131840.29214-1-shiyulong@iscas.ac.cn \
--to=shiyulong@iscas.ac.cn \
--cc=dje.gcc@gmail.com \
--cc=dmalcolm@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=jeffreyalaw@gmail.com \
--cc=jiawei@iscas.ac.cn \
--cc=jim.wilson.gcc@gmail.com \
--cc=kito.cheng@sifive.com \
--cc=mirimmad@outlook.com \
--cc=palmer@dabbelt.com \
--cc=pinskia@gmail.com \
--cc=shihua@iscas.ac.cn \
--cc=wuwei2016@iscas.ac.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).