From: Dibyendu Majumdar <mobile@majumdar.org.uk>
To: Linux-Sparse <linux-sparse@vger.kernel.org>
Subject: sparse-llvm duplicate declarations of data
Date: Tue, 14 Mar 2017 20:29:46 +0000 [thread overview]
Message-ID: <CACXZuxcpyux92Jwe4HodmReoNwiefM7L0OnzX0XMDZ5gm6RAEA@mail.gmail.com> (raw)
Hi,
In the following test case:
static int once;
static int once = 1;
extern int printf(const char *, ...);
static int value(int *p)
{
return *p;
}
int main(void)
{
return value(&once) == 1 ? 0 : 1;
}
Sparse-llvm declares the global 'once' twice as there is a check
missing on whether the global has already been defined.
Regards
next reply other threads:[~2017-03-14 20:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-14 20:29 Dibyendu Majumdar [this message]
2017-03-16 17:25 ` sparse-llvm duplicate declarations of data Luc Van Oostenryck
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=CACXZuxcpyux92Jwe4HodmReoNwiefM7L0OnzX0XMDZ5gm6RAEA@mail.gmail.com \
--to=mobile@majumdar.org.uk \
--cc=linux-sparse@vger.kernel.org \
/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 NNTP newsgroup(s).