]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[PowerPC] Work around -O miscompile on powerpc 32 bit.
authorBrandon Bergren <bdragon@FreeBSD.org>
Tue, 8 Sep 2020 01:27:03 +0000 (01:27 +0000)
committerBrandon Bergren <bdragon@FreeBSD.org>
Tue, 8 Sep 2020 01:27:03 +0000 (01:27 +0000)
commita5c869c1f64deaf945dcccd50b4043f3f0d71f03
treee6f5389155ff2437f6a11e59335e21fcf2d1d22c
parentf83a16e0ecd95c058fe53bf958347b2b47a04755
[PowerPC] Work around -O miscompile on powerpc 32 bit.

Work around llvm 11 miscompile in 32 bit powerpc that appears to cause ifuncs
to branch to the wrong address by forcing -O2. This worked in previous
versions because -O was mapped to -O2 previously (but is now -O1.)

While here, remove the old temporary workaround from r224882 that does the
opposite thing for powerpc non-DEBUG kernels, bringing it in line with other
platforms that compile at -O2.

This fixes kernel boot on powerpc and powerpcspe after the llvm11 transition.

Sponsored by: Tag1 Consulting, Inc.
sys/conf/kern.pre.mk