bin/71628: [PATCH] cleanup of the usr.sbin/rpcbind code
Dan Lukes
dan at obluda.cz
Sun Sep 12 23:40:35 PDT 2004
The following reply was made to PR bin/71628; it has been noted by GNATS.
From: Dan Lukes <dan at obluda.cz>
To: Giorgos Keramidas <keramida at freebsd.org>
Cc: alfred at freebsd.org, bug-followup at freebsd.org
Subject: Re: bin/71628: [PATCH] cleanup of the usr.sbin/rpcbind code
Date: Mon, 13 Sep 2004 08:33:19 +0200
Giorgos Keramidas wrote:
> This initialization
> char *foo = foo;
>
> is not cheaper than this one:
> char *foo = NULL;
Not true. The first one is optimized out by GCC even if O level is 0.
Remember - it's hack/special construct (a special in-band way to tell
the compiler something special) - it's not real assignment.
Check it by your favorite disassembler. I did it.
> This will catch possible bugs (current or future) in the rest of the code, so
> it's a lot safer.
I agree with it.
Dan
--
Dan Lukes, SISAL, MFF UK tel: +420 2 21914205, fax: +420 2 21914206
AKA: dan at obluda.cz, dan at freebsd.cz, dan at kolej.mff.cuni.cz, dan at fio.cz
More information about the freebsd-bugs
mailing list