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

Aurelien Jarno aurelien@aurel32.net
Thu Jul 14 19:03:00 GMT 2016


On 2016-07-14 08:00, H.J. Lu wrote:
> 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.

I confirm this one fix the issue, thanks.

Aurelien

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                 http://www.aurel32.net



More information about the Libc-alpha mailing list