Skip to content

Commit b3bee1e

Browse files
Alexey DobriyanIngo Molnar
authored andcommitted
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 <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Acked-by: H. Peter Anvin (Intel) <[email protected]> Link: https://lore.kernel.org/r/2058761e-12a4-4b2f-9690-3c3c1c9902a5@p183
1 parent 3e3eabe commit b3bee1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ endif
4343

4444
# How to compile the 16-bit code. Note we always compile for -march=i386;
4545
# that way we can complain to the user if the CPU is insufficient.
46-
REALMODE_CFLAGS := -m16 -g -Os -DDISABLE_BRANCH_PROFILING -D__DISABLE_EXPORTS \
46+
REALMODE_CFLAGS := -std=gnu11 -m16 -g -Os -DDISABLE_BRANCH_PROFILING -D__DISABLE_EXPORTS \
4747
-Wall -Wstrict-prototypes -march=i386 -mregparm=3 \
4848
-fno-strict-aliasing -fomit-frame-pointer -fno-pic \
4949
-mno-mmx -mno-sse $(call cc-option,-fcf-protection=none)

0 commit comments

Comments
 (0)