From: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
To: linux-sparse@vger.kernel.org
Cc: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Subject: [PATCH 0/3] multiple dereference in function calls
Date: Thu, 21 Dec 2017 01:19:12 +0100 [thread overview]
Message-ID: <20171221001915.57047-1-luc.vanoostenryck@gmail.com> (raw)
In most situations of function type is implicitly
converted to the corresponding pointer.
This pointer can be dereferenced but the implicit
conversion will make it to immediatly decay back
to a pointer. In consequence, in a function call
the function designator can be preceded by an unlimited
number of deref operator ('*').
This series makes it effective.
Luc Van Oostenryck (3):
add testcases for multiple deref of calls
avoid unneeded alloc on error path
dereference of a function is a no-op
evaluate.c | 6 +++++-
validation/function-pointer-type.c | 3 +++
validation/linear/call-builtin.c | 5 ++++-
validation/linear/call-direct.c | 5 ++++-
validation/linear/call-indirect.c | 4 +++-
validation/linear/call-inline.c | 5 ++++-
validation/sizeof-function.c | 1 -
7 files changed, 23 insertions(+), 6 deletions(-)
--
2.15.0
next reply other threads:[~2017-12-21 0:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-21 0:19 Luc Van Oostenryck [this message]
2017-12-21 0:19 ` [PATCH 1/3] add testcases for multiple deref of calls Luc Van Oostenryck
2017-12-21 0:19 ` [PATCH 2/3] avoid unneeded alloc on error path Luc Van Oostenryck
2017-12-21 0:19 ` [PATCH 3/3] dereference of a function is a no-op 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=20171221001915.57047-1-luc.vanoostenryck@gmail.com \
--to=luc.vanoostenryck@gmail.com \
--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).