/usr/src/lib/libc/net/res_debug.c: compile problem fixed
Brian Candler
B.Candler at pobox.com
Mon Jan 30 00:47:00 PST 2006
On Mon, Jan 30, 2006 at 08:50:00AM +1030, Aluminium Oxide wrote:
> Awwww...
>
> You're right, but there's only a handlful of these that stop buildworld
> with -O3....
I think the issue is that although you may be able to get FreeBSD to *build*
using -O3, it's quite unlikely that it will *work* properly.
If I understand correctly, gcc -O3 makes a lot of assumptions about when
it's OK to keep values around in registers, which may not be valid when
there are interrupts or other threads modifying memory. I think it's
possible to make the code -O3 safe, e.g. by putting loads of 'volatile'
declarations in, but catching every single case where this is required is
extremely different.
This may be more of a problem with the kernel than with userland though.
Regards,
Brian.
More information about the freebsd-net
mailing list