[PATCH] i386: disable sse in rtld-divdi3.os

H.J. Lu hjl.tools@gmail.com
Thu Jul 14 15:06:00 GMT 2016


On Thu, Jul 14, 2016 at 3:45 AM, Aurelien Jarno <aurelien@aurel32.net> wrote:
> When compiling the GNU libc on i386 using GCC 6 and for a CPU with SSE
> support (e.g. -march=pentium4, -march=core2, -march=haswell, ...) the
> rtld-divdi3.os file ends up with SSE instructions using the XMM
> registers. This makes the elf/tst-ld-sse-use test to fail:
>
>   function __udivdi3 in rtld-divdi3.os modifies xmm/ymm/zmm
>
> Modify sysdeps/i386/Makefile to compile this file with -mno-sse -mno-mmx
> -mfpmath=387 like it is already done for other files used by ld.so.
>
> Changelog:
>         * sysdeps/i386/Makefile [$(subdir) == csu] (CFLAGS-rtld-divdi3.os):
>         New. Set to -mno-sse -mno-mmx -mfpmath=387.

Don't all rtld-*.os have the same issue?  Please try this one.


-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-i386-Compile-rtld-.os-with-mno-sse-mno-mmx-mfpmath-3.patch
Type: text/x-patch
Size: 1830 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20160714/b2ed95da/attachment.bin>


More information about the Libc-alpha mailing list