Brad Bishop | 08902b0 | 2019-08-20 09:16:51 -0400 | [diff] [blame] | 1 | From 96d9aa55d29b24e2490d5647a9efc66940fc400f Mon Sep 17 00:00:00 2001 |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Wed, 13 Jan 2016 19:17:31 +0000 |
| 4 | Subject: [PATCH] Disable -mfpmath=sse as well when SSE is disabled |
| 5 | |
| 6 | Fixes |
| 7 | |
| 8 | configure:20574: i586-poky-linux-gcc -m32 -march=core2 -msse3 |
| 9 | -mtune=generic -mfpmath=sse |
| 10 | --sysroot=/usr/local/dev/yocto/grubtest2/build/tmp/sysroots/emenlow -o |
| 11 | conftest -O2 -pipe -g -feliminate-unused-debug-types -Wall -W -Wshadow |
| 12 | -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g |
| 13 | -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse |
| 14 | -mno-sse2 -mno-3dnow -fno-dwarf2-cfi-asm -m32 -fno-stack-protector |
| 15 | -mno-stack-arg-probe -Werror -nostdlib -Wl,--defsym,___main=0x8100 |
| 16 | -Wall -W -I$(top_srcdir)/include -I$(top_builddir)/include |
| 17 | -DGRUB_MACHINE_PCBIOS=1 -DGRUB_MACHINE=I386_PC -Wl,-O1 |
| 18 | -Wl,--hash-style=gnu -Wl,--as-needed conftest.c >&5 |
| 19 | conftest.c:1:0: error: SSE instruction set disabled, using 387 |
| 20 | arithmetics [-Werror] |
| 21 | cc1: all warnings being treated as errors |
| 22 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 23 | Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 24 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 25 | |
Brad Bishop | 08902b0 | 2019-08-20 09:16:51 -0400 | [diff] [blame] | 26 | Upstream-Status: Pending |
| 27 | --- |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 28 | configure.ac | 2 +- |
| 29 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 30 | |
| 31 | diff --git a/configure.ac b/configure.ac |
Brad Bishop | 08902b0 | 2019-08-20 09:16:51 -0400 | [diff] [blame] | 32 | index 7656f24..0868ea9 100644 |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 33 | --- a/configure.ac |
| 34 | +++ b/configure.ac |
Brad Bishop | 08902b0 | 2019-08-20 09:16:51 -0400 | [diff] [blame] | 35 | @@ -824,7 +824,7 @@ fi |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 36 | if ( test "x$target_cpu" = xi386 || test "x$target_cpu" = xx86_64 ) && test "x$platform" != xemu; then |
| 37 | # Some toolchains enable these features by default, but they need |
| 38 | # registers that aren't set up properly in GRUB. |
| 39 | - TARGET_CFLAGS="$TARGET_CFLAGS -mno-mmx -mno-sse -mno-sse2 -mno-sse3 -mno-3dnow" |
| 40 | + TARGET_CFLAGS="$TARGET_CFLAGS -mno-mmx -mno-sse -mno-sse2 -mno-sse3 -mno-3dnow -mfpmath=387" |
| 41 | fi |
| 42 | |
| 43 | # GRUB doesn't use float or doubles at all. Yet some toolchains may decide |