blob: 05a4697a734abb34bfa0e1d8806c1a4d0bc69956 [file] [log] [blame]
Patrick Williamsf52e3dd2024-01-26 13:04:43 -06001From 006799e9c4babe8a8340a24501b253e759614a2d Mon Sep 17 00:00:00 2001
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05002From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 13 Jan 2016 19:17:31 +0000
4Subject: [PATCH] Disable -mfpmath=sse as well when SSE is disabled
5
6Fixes
7
8configure: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
11conftest -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
19conftest.c:1:0: error: SSE instruction set disabled, using 387
20arithmetics [-Werror]
21cc1: all warnings being treated as errors
22
Patrick Williamsc0f7c042017-02-23 20:41:17 -060023Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050024Signed-off-by: Khem Raj <raj.khem@gmail.com>
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050025
Brad Bishop08902b02019-08-20 09:16:51 -040026Upstream-Status: Pending
Patrick Williamsf52e3dd2024-01-26 13:04:43 -060027
Brad Bishop08902b02019-08-20 09:16:51 -040028---
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050029 configure.ac | 2 +-
30 1 file changed, 1 insertion(+), 1 deletion(-)
31
32diff --git a/configure.ac b/configure.ac
Patrick Williamsf52e3dd2024-01-26 13:04:43 -060033index cd667a2..8263876 100644
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050034--- a/configure.ac
35+++ b/configure.ac
Patrick Williamsf52e3dd2024-01-26 13:04:43 -060036@@ -846,7 +846,7 @@ fi
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050037 if ( test "x$target_cpu" = xi386 || test "x$target_cpu" = xx86_64 ) && test "x$platform" != xemu; then
38 # Some toolchains enable these features by default, but they need
39 # registers that aren't set up properly in GRUB.
40- TARGET_CFLAGS="$TARGET_CFLAGS -mno-mmx -mno-sse -mno-sse2 -mno-sse3 -mno-3dnow"
41+ TARGET_CFLAGS="$TARGET_CFLAGS -mno-mmx -mno-sse -mno-sse2 -mno-sse3 -mno-3dnow -mfpmath=387"
42 fi
43
Patrick Williamsf52e3dd2024-01-26 13:04:43 -060044 if ( test "x$target_cpu" = xi386 || test "x$target_cpu" = xx86_64 ); then