Remove -fno-guess-branch-probability and -fno-unit-at-a-time.
authorimp <imp@FreeBSD.org>
Tue, 28 Mar 2017 18:09:01 +0000 (18:09 +0000)
committerimp <imp@FreeBSD.org>
Tue, 28 Mar 2017 18:09:01 +0000 (18:09 +0000)
commit01cefdaf8742c7e18cd29741634c64fc35406d6f
tree3f3fd2b0cf27977994bfb09324d4ec697b529b15
parenta5dab3b819ddd8a53742cac950c3f44daf29f439
Remove -fno-guess-branch-probability and -fno-unit-at-a-time.

bde enabled -fno-guess-branch-probability in 2003, well before our
current compiler was imported. At the time it produced weirdly orded
code. It no longer does that. It also saves 0-4 bytes depending on
other options.

kan disabled unit-at-a-time in 2004 because it badly mangled boot2 so
it wouldn't work. That too was before the 4.2.1 compiler, where it no
longer does that. This saves 44 bytes.

I had planned to document why they were needed, but when I discovered
their antiquity, I removed them and boot2 still works and is
smaller. In qemu, the old and new boot2's behaved identically.

These are gcc specific hacks, and won't affect clang-built boot2
at all.
sys/boot/i386/boot2/Makefile