Re: [PATCH 2.6.14-rc1] ppc: prevent GCC 4 from generating AltiVec instructions in kernel

From: Keith Owens
Date: Wed Sep 14 2005 - 01:24:48 EST


On Tue, 13 Sep 2005 23:12:06 -0700,
Lee Nicks <allinux@xxxxxxxxx> wrote:
>Depending on how GCC is built, GCC 4 may generate altivec instructions
>...
>+# No AltiVec instruction when building kernel
>+ifeq ($(call cc-option-yn, -mno-altivec), y)
>+CFLAGS += -mno-altivec
>+endif

Use the standard format, one line instead of three.

cflags-y += $(call cc-option, -mno-altivec)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/