hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/x86/Makefile.um
....@@ -26,13 +26,6 @@
2626 # an unresolved reference.
2727 cflags-y += -ffreestanding
2828
29
-# Disable unit-at-a-time mode on pre-gcc-4.0 compilers, it makes gcc use
30
-# a lot more stack due to the lack of sharing of stacklots. Also, gcc
31
-# 4.3.0 needs -funit-at-a-time for extern inline functions.
32
-KBUILD_CFLAGS += $(shell if [ $(cc-version) -lt 0400 ] ; then \
33
- echo $(call cc-option,-fno-unit-at-a-time); \
34
- else echo $(call cc-option,-funit-at-a-time); fi ;)
35
-
3629 KBUILD_CFLAGS += $(cflags-y)
3730
3831 else
....@@ -54,6 +47,4 @@
5447 LINK-$(CONFIG_LD_SCRIPT_DYN) += -Wl,-rpath,/lib64
5548 LINK-y += -m64
5649
57
-# Do unit-at-a-time unconditionally on x86_64, following the host
58
-KBUILD_CFLAGS += $(call cc-option,-funit-at-a-time)
5950 endif