From: Josh Poimboeuf <jpoimboe@redhat.com>
To: hpa@zytor.com
Cc: Ingo Molnar <mingo@kernel.org>,
Nick Desaulniers <nick.desaulniers@gmail.com>,
tglx@linutronix.de, mingo@redhat.com, x86@kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [Patch v2] x86/build: require only gcc use -maccumulate-outgoing-args
Date: Fri, 5 May 2017 08:05:52 -0500 [thread overview]
Message-ID: <20170505130552.m2x5bjgexlktxsyz@treble> (raw)
In-Reply-To: <E6EC5FDB-622A-41B3-AA53-FDEF40C8040E@zytor.com>
On Thu, May 04, 2017 at 11:38:57PM -0700, hpa@zytor.com wrote:
> On May 4, 2017 11:23:33 PM PDT, Ingo Molnar <mingo@kernel.org> wrote:
> >
> >* Nick Desaulniers <nick.desaulniers@gmail.com> wrote:
> >
> >> Other compilers, like clang, treat unknown compiler flags as errors.
> >>
> >> Signed-off-by: Nick Desaulniers <nick.desaulniers@gmail.com>
> >> ---
> >> arch/x86/Makefile | 2 +-
> >> 1 file changed, 1 insertion(+), 1 deletion(-)
> >>
> >> diff --git a/arch/x86/Makefile b/arch/x86/Makefile
> >> index 4430dd489620..12757a252e6b 100644
> >> --- a/arch/x86/Makefile
> >> +++ b/arch/x86/Makefile
> >> @@ -179,7 +179,7 @@ ifdef CONFIG_JUMP_LABEL
> >> endif
> >>
> >> ifeq ($(ACCUMULATE_OUTGOING_ARGS), 1)
> >> - KBUILD_CFLAGS += -maccumulate-outgoing-args
> >> + KBUILD_CFLAGS += $(if $(filter
> >gcc,$(cc-name)),-maccumulate-outgoing-args)
> >> endif
> >>
> >> # Stackpointer is addressed different for 32 bit and 64 bit x86
> >
> >The justification Josh gave for this pattern should be put into a
> >comment and into
> >the changelog as well.
> >
> >Thanks,
> >
> > Ingo
>
> However, I don't think Josh's explanation is correct. I am pretty
> sure it is a performance issue, not a correctness issue
Why wouldn't it be a correctness issue? The option is needed in a few
cases (involving older versions of gcc and certain configs) to avoid
some bugs (see the Makefile for more details).
> and besides, a version of gcc that old won't be able to compile the
> kernel for other reasons, as evidenced by the fact that noone has
> complained about this option being mandatory.
Yeah. Looking at the gcc source, the option has actually been around
since 2000. So, never mind!
I'd be ok with v1, plus a comment saying that clang doesn't support the
option.
--
Josh
next prev parent reply other threads:[~2017-05-05 13:05 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-04 6:23 [PATCH] x86/build: don't add -maccumulate-outgoing-args w/o compiler support Nick Desaulniers
2017-05-04 19:14 ` Josh Poimboeuf
2017-05-05 3:17 ` [Patch v2] x86/build: require only gcc use -maccumulate-outgoing-args Nick Desaulniers
2017-05-05 6:23 ` Ingo Molnar
2017-05-05 6:38 ` hpa
2017-05-05 13:05 ` Josh Poimboeuf [this message]
2017-05-06 3:05 ` [Patch v3] x86/build: don't add -maccumulate-outgoing-args w/o compiler support Nick Desaulniers
2017-05-08 3:26 ` Josh Poimboeuf
2017-05-09 3:29 ` [Patch v4] " Nick Desaulniers
2017-05-09 3:41 ` Josh Poimboeuf
2017-05-09 6:41 ` [tip:x86/urgent] x86/build: Don't " tip-bot for Nick Desaulniers
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=20170505130552.m2x5bjgexlktxsyz@treble \
--to=jpoimboe@redhat.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=mingo@redhat.com \
--cc=nick.desaulniers@gmail.com \
--cc=tglx@linutronix.de \
--cc=x86@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
all inboxes | Powered by JetHome®