netbsd-7 kernel build failure

2015-05-04 Thread Hauke Fath
A netbsd-7 kernel build from today's sources with -Os errors out with # compile P3B-F/drmfb_pci.o /u/netbsd-builds/7/i386/tools/bin/i486--netbsdelf-gcc -msoft-float -mno-mmx -mno-sse -mno-avx -ffreestanding -fno-zero-initialized-in-bss -pipe -Os -march=pentium3 -fstack-protector

Re: netbsd-7 kernel build failure

2015-05-04 Thread Hauke Fath
On Mon, 04 May 2015 16:18:42 +0200, Hauke Fath wrote: A netbsd-7 kernel build from today's sources with -Os errors out with [...] ... and a few more. Looks like '-Os' applies slightly different criteria than '-O2' to what gcc perceives as an unused variable. The question is - should we care?

Re: netbsd-7 kernel build failure

2015-05-04 Thread Joerg Sonnenberger
On Mon, May 04, 2015 at 05:30:17PM +0200, Hauke Fath wrote: Looks like '-Os' applies slightly different criteria than '-O2' to what gcc perceives as an unused variable. Congratulation, you discovered one of the biggest bugs in GCC's unused variable warning. Joerg