Superfluous instructions in crufty old releng/12.0/lib/msun/i387/s_remquo.S, releng/12.0/lib/msun/amd64/s_remquo.S, ...

Steve Kargl sgk at
Fri Sep 6 14:15:22 UTC 2019

On Fri, Sep 06, 2019 at 12:45:03PM +0200, Stefan Kanthak wrote:
> although I doubt that this FPU code might still be used,
> here's a patch to shave 2 superfluous instructions from

I don't know assembly, so cannot judge the correctness of your
patch.  Perhaps, bde will chime in here.  The files are used.

% make |& tee make.txt
cc -O2 -pipe -I/usr/src/lib/msun/x86 -I/usr/src/lib/msun/ld80
 -I/usr/src/lib/msun/i387 -I/usr/src/lib/msun/src
 -I/usr/src/lib/libc/include  -I/usr/src/lib/libc/i386
 -march=core2  -MD  -MF.depend.s_remquo.o -MTs_remquo.o
 -std=gnu99 -fstack-protector-strong -Wsystem-headers
 -Werror -Wno-pointer-sign -Wno-unknown-pragmas -Wno-empty-body
 -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare
 -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function
 -Wno-enum-conversion -Wno-unused-local-typedef -Wno-address-of-packed-member
 -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses
 -Qunused-arguments -c /usr/src/lib/msun/i387/s_remquo.S -o s_remquo.o


More information about the freebsd-numerics mailing list