[2637] 2009-10-16 Colin Watson <[email protected]>

Colin Watson <[email protected]> Fri, 16 Oct 2009 15:38:44 +0000
Newsgroups gmane.comp.boot-loaders.grub.cvs
Message-ID <[email protected]>
Revision: 2637
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2637
Author:   cjwatson
Date:     2009-10-16 15:38:42 +0000 (Fri, 16 Oct 2009)
Log Message:
-----------
2009-10-16  Colin Watson  <[email protected]>

	* configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
	-mno-3dnow on x86 architectures.  Some toolchains enable these
	features by default, but they rely on registers that aren't enabled
	in GRUB.  Thanks to Vladimir Serbinenko for the suggestion.

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/configure.ac

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog	2009-10-15 20:34:27 UTC (rev 2636)
+++ trunk/grub2/ChangeLog	2009-10-16 15:38:42 UTC (rev 2637)
@@ -1,3 +1,10 @@
+2009-10-16  Colin Watson  <[email protected]>
+
+	* configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
+	-mno-3dnow on x86 architectures.  Some toolchains enable these
+	features by default, but they rely on registers that aren't enabled
+	in GRUB.  Thanks to Vladimir Serbinenko for the suggestion.
+
 2009-10-15  Robert Millan  <[email protected]>
 
 	Make entry text a bit more readable.

Modified: trunk/grub2/configure.ac
===================================================================
--- trunk/grub2/configure.ac	2009-10-15 20:34:27 UTC (rev 2636)
+++ trunk/grub2/configure.ac	2009-10-16 15:38:42 UTC (rev 2637)
@@ -252,6 +252,10 @@
     else
       TARGET_CFLAGS="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
     fi
+
+    # Some toolchains enable these features by default, but they need
+    # registers that aren't set up properly in GRUB.
+    TARGET_CFLAGS="$TARGET_CFLAGS -mno-mmx -mno-sse -mno-sse2 -mno-3dnow"
   fi
 
   # By default, GCC 4.4 generates .eh_frame sections containing unwind