linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Linus Torvalds <torvalds@linux-foundation.org>
To: "Guillaume Oberlé" <goberle@ygg.tf>
Cc: Sparse Mailing-list <linux-sparse@vger.kernel.org>
Subject: Re: preop expression and variable
Date: Fri, 21 Mar 2014 11:13:13 -0700	[thread overview]
Message-ID: <CA+55aFxCVVdvrMRhOsmvAU-DqWQ8DRFBNohFWvn4HodHXA0U_A@mail.gmail.com> (raw)
In-Reply-To: <22AE7E9E-932B-4E83-9DE1-CE82FD140CDF@ygg.tf>

On Fri, Mar 21, 2014 at 4:02 AM, Guillaume Oberlé <goberle@ygg.tf> wrote:
>
> If you look at the output (l117 or l133), I have a PreopExpression before every variable in an expression statement, even if I have no preoperator.

You need to look at what the op is too, not just the type.

I assume you're talking about EXPR_PREOP-'*'. That's a dereference
("lvalue access").  And yes, it's required. A symbol on its own is
just the address or the symbol. Actually *accessing* that symbol is
that PREOP-*.

            Lnus
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2014-03-21 18:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-21 11:02 preop expression and variable Guillaume Oberlé
2014-03-21 18:13 ` Linus Torvalds [this message]

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=CA+55aFxCVVdvrMRhOsmvAU-DqWQ8DRFBNohFWvn4HodHXA0U_A@mail.gmail.com \
    --to=torvalds@linux-foundation.org \
    --cc=goberle@ygg.tf \
    --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).