* [PATCH] x86: compile boot code with -std=gnu11 too
@ 2023-09-27 15:42 Alexey Dobriyan
2023-09-27 23:05 ` H. Peter Anvin
2023-09-28 8:16 ` [tip: x86/boot] x86/boot: Compile " tip-bot2 for Alexey Dobriyan
0 siblings, 2 replies; 3+ messages in thread
From: Alexey Dobriyan @ 2023-09-27 15:42 UTC (permalink / raw)
To: Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen
Cc: x86, H. Peter Anvin, linux-kernel
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)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] x86: compile boot code with -std=gnu11 too
2023-09-27 15:42 [PATCH] x86: compile boot code with -std=gnu11 too Alexey Dobriyan
@ 2023-09-27 23:05 ` H. Peter Anvin
2023-09-28 8:16 ` [tip: x86/boot] x86/boot: Compile " tip-bot2 for Alexey Dobriyan
1 sibling, 0 replies; 3+ messages in thread
From: H. Peter Anvin @ 2023-09-27 23:05 UTC (permalink / raw)
To: Alexey Dobriyan, Thomas Gleixner, Ingo Molnar, Borislav Petkov,
Dave Hansen
Cc: x86, linux-kernel
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>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [tip: x86/boot] x86/boot: Compile boot code with -std=gnu11 too
2023-09-27 15:42 [PATCH] x86: compile boot code with -std=gnu11 too Alexey Dobriyan
2023-09-27 23:05 ` H. Peter Anvin
@ 2023-09-28 8:16 ` tip-bot2 for Alexey Dobriyan
1 sibling, 0 replies; 3+ messages in thread
From: tip-bot2 for Alexey Dobriyan @ 2023-09-28 8:16 UTC (permalink / raw)
To: linux-tip-commits
Cc: Alexey Dobriyan, Ingo Molnar, H. Peter Anvin (Intel), x86, linux-kernel
The following commit has been merged into the x86/boot branch of tip:
Commit-ID: b3bee1e7c3f2b1b77182302c7b2131c804175870
Gitweb: https://git.kernel.org/tip/b3bee1e7c3f2b1b77182302c7b2131c804175870
Author: Alexey Dobriyan <adobriyan@gmail.com>
AuthorDate: Wed, 27 Sep 2023 18:42:11 +03:00
Committer: Ingo Molnar <mingo@kernel.org>
CommitterDate: Thu, 28 Sep 2023 10:11:27 +02:00
x86/boot: Compile boot code with -std=gnu11 too
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>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Link: https://lore.kernel.org/r/2058761e-12a4-4b2f-9690-3c3c1c9902a5@p183
---
arch/x86/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/Makefile b/arch/x86/Makefile
index 5bfe5ca..776331f 100644
--- 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)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-09-28 8:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-27 15:42 [PATCH] x86: compile boot code with -std=gnu11 too Alexey Dobriyan
2023-09-27 23:05 ` H. Peter Anvin
2023-09-28 8:16 ` [tip: x86/boot] x86/boot: Compile " tip-bot2 for Alexey Dobriyan
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®