aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/parisc/Makefile2
-rw-r--r--arch/powerpc/Makefile6
-rw-r--r--arch/x86/Makefile.um2
3 files changed, 5 insertions, 5 deletions
diff --git a/arch/parisc/Makefile b/arch/parisc/Makefile
index 5db8882f732c..fc1aca379fe2 100644
--- a/arch/parisc/Makefile
+++ b/arch/parisc/Makefile
@@ -149,7 +149,7 @@ endef
149# we require gcc 3.3 or above to compile the kernel 149# we require gcc 3.3 or above to compile the kernel
150archprepare: checkbin 150archprepare: checkbin
151checkbin: 151checkbin:
152 @if test "$(call cc-version)" -lt "0303"; then \ 152 @if test "$(cc-version)" -lt "0303"; then \
153 echo -n "Sorry, GCC v3.3 or above is required to build " ; \ 153 echo -n "Sorry, GCC v3.3 or above is required to build " ; \
154 echo "the kernel." ; \ 154 echo "the kernel." ; \
155 false ; \ 155 false ; \
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile
index 132d9c681d6a..fc502e042438 100644
--- a/arch/powerpc/Makefile
+++ b/arch/powerpc/Makefile
@@ -314,7 +314,7 @@ TOUT := .tmp_gas_check
314# - Require gcc 4.0 or above on 64-bit 314# - Require gcc 4.0 or above on 64-bit
315# - gcc-4.2.0 has issues compiling modules on 64-bit 315# - gcc-4.2.0 has issues compiling modules on 64-bit
316checkbin: 316checkbin:
317 @if test "$(call cc-version)" = "0304" ; then \ 317 @if test "$(cc-version)" = "0304" ; then \
318 if ! /bin/echo mftb 5 | $(AS) -v -mppc -many -o $(TOUT) >/dev/null 2>&1 ; then \ 318 if ! /bin/echo mftb 5 | $(AS) -v -mppc -many -o $(TOUT) >/dev/null 2>&1 ; then \
319 echo -n '*** ${VERSION}.${PATCHLEVEL} kernels no longer build '; \ 319 echo -n '*** ${VERSION}.${PATCHLEVEL} kernels no longer build '; \
320 echo 'correctly with gcc-3.4 and your version of binutils.'; \ 320 echo 'correctly with gcc-3.4 and your version of binutils.'; \
@@ -322,13 +322,13 @@ checkbin:
322 false; \ 322 false; \
323 fi ; \ 323 fi ; \
324 fi 324 fi
325 @if test "$(call cc-version)" -lt "0400" \ 325 @if test "$(cc-version)" -lt "0400" \
326 && test "x${CONFIG_PPC64}" = "xy" ; then \ 326 && test "x${CONFIG_PPC64}" = "xy" ; then \
327 echo -n "Sorry, GCC v4.0 or above is required to build " ; \ 327 echo -n "Sorry, GCC v4.0 or above is required to build " ; \
328 echo "the 64-bit powerpc kernel." ; \ 328 echo "the 64-bit powerpc kernel." ; \
329 false ; \ 329 false ; \
330 fi 330 fi
331 @if test "$(call cc-fullversion)" = "040200" \ 331 @if test "$(cc-fullversion)" = "040200" \
332 && test "x${CONFIG_MODULES}${CONFIG_PPC64}" = "xyy" ; then \ 332 && test "x${CONFIG_MODULES}${CONFIG_PPC64}" = "xyy" ; then \
333 echo -n '*** GCC-4.2.0 cannot compile the 64-bit powerpc ' ; \ 333 echo -n '*** GCC-4.2.0 cannot compile the 64-bit powerpc ' ; \
334 echo 'kernel with modules enabled.' ; \ 334 echo 'kernel with modules enabled.' ; \
diff --git a/arch/x86/Makefile.um b/arch/x86/Makefile.um
index 36b62bc52638..95eba554baf9 100644
--- a/arch/x86/Makefile.um
+++ b/arch/x86/Makefile.um
@@ -30,7 +30,7 @@ cflags-y += -ffreestanding
30# Disable unit-at-a-time mode on pre-gcc-4.0 compilers, it makes gcc use 30# Disable unit-at-a-time mode on pre-gcc-4.0 compilers, it makes gcc use
31# a lot more stack due to the lack of sharing of stacklots. Also, gcc 31# a lot more stack due to the lack of sharing of stacklots. Also, gcc
32# 4.3.0 needs -funit-at-a-time for extern inline functions. 32# 4.3.0 needs -funit-at-a-time for extern inline functions.
33KBUILD_CFLAGS += $(shell if [ $(call cc-version) -lt 0400 ] ; then \ 33KBUILD_CFLAGS += $(shell if [ $(cc-version) -lt 0400 ] ; then \
34 echo $(call cc-option,-fno-unit-at-a-time); \ 34 echo $(call cc-option,-fno-unit-at-a-time); \
35 else echo $(call cc-option,-funit-at-a-time); fi ;) 35 else echo $(call cc-option,-funit-at-a-time); fi ;)
36 36