Comment 8 for bug 423412

Am Donnerstag, den 03.09.2009, 14:17 +0000 schrieb Roland Dreier:
> Oh, by the way: it seems that the grub modules are built with -O2 --
> using -Os could possibly shave a few percent off, which would give a
> little bit bigger margin of safety in the future.
>

You probable looked wrong.
For the utilities fs/ext2.c is compiled with -O2 but also with
-DGRUB_UTIL=1
For the module itself it's compiled with -Os
For example taken from the amd64 buildd log:

gcc -Ifs -I/build/buildd/grub2-1.97~beta1/fs -I. -I./include
-I/build/buildd/grub2-1.97~beta1/include -Wall -W -Wall -W -Wshadow
-Wpointer-arith -Wmissing-prototypes -Wundef
-Wstrict-prototypes -g -Os -falign-jumps=1 -falign-loops=1
-falign-functions=1 -m32 -fno-stack-protector -fno-builtin -m32 -MD -c
-o ext2_mod-fs_ext2.o /build/buildd/grub2-1.97~beta1/fs/ext2.c

--
Felix Zielcke
Proud Debian Maintainer