Re: [patch 2.6.14-rc1] i386: Correct Pentium optimization

From: Paolo Ornati
Date: Tue Sep 13 2005 - 07:47:05 EST


On Tue, 13 Sep 2005 13:51:48 +0200 (CEST)
simrw@xxxxxxxxxxxx wrote:

> -cflags-$(CONFIG_MPENTIUMII) += -march=i686 $(call cc-option,-mtune=pentium2)
> -cflags-$(CONFIG_MPENTIUMIII) += -march=i686 $(call cc-option,-mtune=pentium3)
> -cflags-$(CONFIG_MPENTIUMM) += -march=i686 $(call cc-option,-mtune=pentium3)
> -cflags-$(CONFIG_MPENTIUM4) += -march=i686 $(call cc-option,-mtune=pentium4)
> +cflags-$(CONFIG_MPENTIUMII) += $(call cc-option,-march=pentium2,-march=i686)
> +cflags-$(CONFIG_MPENTIUMIII) += $(call cc-option,-march=pentium3,-march=i686)
> +cflags-$(CONFIG_MPENTIUMM) += $(call cc-option,-march=pentium-m,-march=i686)
> +cflags-$(CONFIG_MPENTIUM4) += $(call cc-option,-march=pentium4,-march=i686)


I'm not sure that it is safe, read this:

http://groups.google.it/group/linux.kernel/browse_frm/thread/89467f7aa9963d4f/b4575e40eecc713a?lnk=st&q=march%3Dpentium4+mtune+group:linux.kernel&rnum=1&hl=it#b4575e40eecc713a

--
Paolo Ornati
Linux 2.6.14-rc1 on x86_64
-
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/