.. | .. |
---|
26 | 26 | # an unresolved reference. |
---|
27 | 27 | cflags-y += -ffreestanding |
---|
28 | 28 | |
---|
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 | | - |
---|
36 | 29 | KBUILD_CFLAGS += $(cflags-y) |
---|
37 | 30 | |
---|
38 | 31 | else |
---|
.. | .. |
---|
54 | 47 | LINK-$(CONFIG_LD_SCRIPT_DYN) += -Wl,-rpath,/lib64 |
---|
55 | 48 | LINK-y += -m64 |
---|
56 | 49 | |
---|
57 | | -# Do unit-at-a-time unconditionally on x86_64, following the host |
---|
58 | | -KBUILD_CFLAGS += $(call cc-option,-funit-at-a-time) |
---|
59 | 50 | endif |
---|