]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2009-10-16 Colin Watson <cjwatson@ubuntu.com>
authorcjwatson <cjwatson@localhost>
Fri, 16 Oct 2009 15:38:42 +0000 (15:38 +0000)
committercjwatson <cjwatson@localhost>
Fri, 16 Oct 2009 15:38:42 +0000 (15:38 +0000)
* 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.

ChangeLog
configure.ac

index b90033393c0b0ca921eb50fe298effac55c65c0a..eb874f93e992434e16cd9bb1016e6a67b7fa9655 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-10-16  Colin Watson  <cjwatson@ubuntu.com>
+
+       * 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  <rmh.grub@aybabtu.com>
 
        Make entry text a bit more readable.
index 9461799668af9bda561c5b32d796ddfe60fca47a..f26b92447707ba5e406db9bbcd8f74f6b049fb0c 100644 (file)
@@ -252,6 +252,10 @@ if test "x$TARGET_CFLAGS" = x; then
     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