public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: simrw@sim-basis.de
To: linux-kernel@vger.kernel.org
Cc: akpm@osdl.org
Subject: [patch 2.6.14-rc1] i386: Correct Pentium optimization
Date: Tue, 13 Sep 2005 13:51:48 +0200 (CEST)	[thread overview]
Message-ID: <3974.192.168.6.50.1126612308.squirrel@simlinux> (raw)

[-- Attachment #1: Type: text/plain, Size: 1574 bytes --]

GCC 3.x apparently does not allow the -mtune option when specifying
-march=i686. This means that P-2/3/4/M never get optimzed.
Change the i386 Makefile to cater for this.

Signed-off-by: Roger While <simrw@sim-basis.de>

Patch also as attachment as Squirrel is sure to mangle.

Roger While

diff -Naur linux-2.6.14/arch/i386/Makefile
linux-2.6.14patch/arch/i386/Makefile
--- linux-2.6.14/arch/i386/Makefile     2005-09-13 13:16:22.000000000 +0200
+++ linux-2.6.14patch/arch/i386/Makefile        2005-09-13
13:11:47.000000000 +0200
@@ -41,10 +41,10 @@
 cflags-$(CONFIG_M586TSC)       += -march=i586
 cflags-$(CONFIG_M586MMX)       += $(call
cc-option,-march=pentium-mmx,-march=i586)
 cflags-$(CONFIG_M686)          += -march=i686
-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)
 cflags-$(CONFIG_MK6)           += -march=k6
 # Please note, that patches that add -march=athlon-xp and friends are
pointless.
 # They make zero difference whatsosever to performance at this time.

[-- Attachment #2: pentiumgcc.patch --]
[-- Type: text/plain, Size: 1217 bytes --]

diff -Naur linux-2.6.14/arch/i386/Makefile linux-2.6.14patch/arch/i386/Makefile
--- linux-2.6.14/arch/i386/Makefile	2005-09-13 13:16:22.000000000 +0200
+++ linux-2.6.14patch/arch/i386/Makefile	2005-09-13 13:11:47.000000000 +0200
@@ -41,10 +41,10 @@
 cflags-$(CONFIG_M586TSC)	+= -march=i586
 cflags-$(CONFIG_M586MMX)	+= $(call cc-option,-march=pentium-mmx,-march=i586)
 cflags-$(CONFIG_M686)		+= -march=i686
-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)
 cflags-$(CONFIG_MK6)		+= -march=k6
 # Please note, that patches that add -march=athlon-xp and friends are pointless.
 # They make zero difference whatsosever to performance at this time.

             reply	other threads:[~2005-09-13 11:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-13 11:51 simrw [this message]
2005-09-13 12:47 ` [patch 2.6.14-rc1] i386: Correct Pentium optimization Paolo Ornati

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3974.192.168.6.50.1126612308.squirrel@simlinux \
    --to=simrw@sim-basis.de \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox