mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: Alexey Dobriyan <adobriyan@gmail.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
	Dave Hansen <dave.hansen@linux.intel.com>
Cc: x86@kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] x86: compile boot code with -std=gnu11 too
Date: Wed, 27 Sep 2023 16:05:04 -0700	[thread overview]
Message-ID: <6580AF56-86B2-4C2B-BC28-8100ADE1C345@zytor.com> (raw)
In-Reply-To: <2058761e-12a4-4b2f-9690-3c3c1c9902a5@p183>

On September 27, 2023 8:42:11 AM PDT, Alexey Dobriyan <adobriyan@gmail.com> wrote:
>Use -std=gnu11 for consistency with main kernel code.
>
>It doesn't seem to change anything in vmlinux.
>
>Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
>---
>
> arch/x86/Makefile |    2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>--- a/arch/x86/Makefile
>+++ b/arch/x86/Makefile
>@@ -43,7 +43,7 @@ endif
> 
> # How to compile the 16-bit code.  Note we always compile for -march=i386;
> # that way we can complain to the user if the CPU is insufficient.
>-REALMODE_CFLAGS	:= -m16 -g -Os -DDISABLE_BRANCH_PROFILING -D__DISABLE_EXPORTS \
>+REALMODE_CFLAGS	:= -std=gnu11 -m16 -g -Os -DDISABLE_BRANCH_PROFILING -D__DISABLE_EXPORTS \
> 		   -Wall -Wstrict-prototypes -march=i386 -mregparm=3 \
> 		   -fno-strict-aliasing -fomit-frame-pointer -fno-pic \
> 		   -mno-mmx -mno-sse $(call cc-option,-fcf-protection=none)

Acked-by: H. Peter Anvin (Intel) <hpa@zytor.com>

  reply	other threads:[~2023-09-27 23:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-27 15:42 Alexey Dobriyan
2023-09-27 23:05 ` H. Peter Anvin [this message]
2023-09-28  8:16 ` [tip: x86/boot] x86/boot: Compile " tip-bot2 for Alexey Dobriyan

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=6580AF56-86B2-4C2B-BC28-8100ADE1C345@zytor.com \
    --to=hpa@zytor.com \
    --cc=adobriyan@gmail.com \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.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®