From: Christopher Li <sparse@chrisli.org>
To: Pavel Roskin <plroskin@gmail.com>
Cc: Linux-Sparse <linux-sparse@vger.kernel.org>
Subject: Re: [PATCH] Add -gcc-version option
Date: Tue, 18 Jul 2017 19:35:14 -0400 [thread overview]
Message-ID: <CANeU7Qn7Te3kxzcWAzC_4Hn2MLSsGFTdNX2AjJwmWdb6e2n+pA@mail.gmail.com> (raw)
In-Reply-To: <CAN_72e10vHGWwmovq_ra7FKE9EQgo-T+r8AavwFErkEV9Hnuww@mail.gmail.com>
On Tue, Jul 18, 2017 at 5:59 PM, Pavel Roskin <plroskin@gmail.com> wrote:
> The option argument is parsed into major, minor and patchlevel versions,
> which are defined as __GNUC__, __GNUC_MINOR__, and __GNUC_PATCHLEVEL__ in
> the preprocessor.
>
> One possible use is running sparse compiled with the lastest gcc compiler
> on a Linux kernel that doesn't support that compiler.
I am curious, can you just invoke sparse with -D__GNUC__=1 -D__GNUC_MINOR__=2
to do the same thing?
The current __GNUC__ was a weak define it is suitable for overriding
if you wants to.
Chris
next prev parent reply other threads:[~2017-07-18 23:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-18 21:59 [PATCH] Add -gcc-version option Pavel Roskin
2017-07-18 23:35 ` Christopher Li [this message]
2017-07-18 23:46 ` Pavel Roskin
2017-07-19 13:07 ` Christopher Li
2017-07-19 17:27 ` Pavel Roskin
2017-07-19 19:16 ` Christopher Li
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=CANeU7Qn7Te3kxzcWAzC_4Hn2MLSsGFTdNX2AjJwmWdb6e2n+pA@mail.gmail.com \
--to=sparse@chrisli.org \
--cc=linux-sparse@vger.kernel.org \
--cc=plroskin@gmail.com \
/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).