freebsd-dev/sys/boot/i386/boot2
Bruce Evans e754a32842 Saved 176 bytes by compiling with -fno-guess-branch-probability. The
default of -fguess-branch-probablility causes time optimizations (?)
like rewriting `if (foo) x++;' as
`if (!foo) goto forth; back: ; ...; forth: x++; goto back;".  This is
pessimizes space especially well on i386's because one short branch
gets converted to 2 long ones.

Removed -fno-align-foo since it is implied by -Os.  Previous commit
messages seem to have overstated the new alignment bugs in gcc.  The
only case that affects boot2 is that -fno-align-functions (or
equivalently -falign-functions=1) actually gives -falign-functions=2.
This is caused by FUNCTION_BOUNDARY being 2 (bytes) instead of 1.
The default case where the optimization level is 1 and no alignment
options are given is more broken.  All alignments are minimal, modulo
the bug in FUNCTION_BOUNDARY.  This is caused by toplev.c setting
defaults too early.

Some hacks in previous commits ar not needed now, but may as well be
kept until gcc is fixed.  The previous on in the Makefile saved 96
bytes of text due to the wrong FUNCTION_BOUNDARY and 32 bytes of data
due to unrelated bloat in the alignment of large objects.  There aren't
even any options to control alignment of data.
2002-05-12 15:45:28 +00:00
..
boot1.s Fix the ILLEGAL fdisk table that is there for supporting "dangerously 2001-11-01 06:19:32 +00:00
boot1.S Fix the ILLEGAL fdisk table that is there for supporting "dangerously 2001-11-01 06:19:32 +00:00
boot2.c Save about 60 bytes by #define memcpy __builtin_memcpy and removing 2002-05-11 21:49:39 +00:00
lib.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
Makefile Saved 176 bytes by compiling with -fno-guess-branch-probability. The 2002-05-12 15:45:28 +00:00
sio.s $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
sio.S $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00