This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug build/17950] Build fails with -msse

Khem Raj <raj.khem at gmail dot com> changed:

           What    |Removed                     |Added
                 CC|                            |raj.khem at gmail dot com

--- Comment #2 from Khem Raj <raj.khem at gmail dot com> ---
-msse -mno-sse works fine however
Error happens when one used -mfpmath=sse in CFLAGS, Since we are explicitly
disabling SSE we very well might disable SSE for fpmath as well.

a patch like this works for me

diff --git a/sysdeps/x86/Makefile b/sysdeps/x86/Makefile
index 19f5eca..827ea71 100644
--- a/sysdeps/x86/Makefile
+++ b/sysdeps/x86/Makefile
@@ -1,6 +1,6 @@
 ifeq ($(subdir),elf)
 CFLAGS-.os += $(if $(filter $(@F),$(patsubst %,%.os,$(all-rtld-routines))),\
-                  -mno-sse -mno-mmx)
+                  -mno-sse -mno-mmx -mfpmath=387)

 tests-special += $(objpfx)tst-ld-sse-use.out
 $(objpfx)tst-ld-sse-use.out: ../sysdeps/x86/ $(objpfx)

You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]