Date: Mon, 13 Sep 2004 06:40:35 GMT From: Dan Lukes <dan@obluda.cz> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/71628: [PATCH] cleanup of the usr.sbin/rpcbind code Message-ID: <200409130640.i8D6eZbO046076@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/71628; it has been noted by GNATS. From: Dan Lukes <dan@obluda.cz> To: Giorgos Keramidas <keramida@freebsd.org> Cc: alfred@freebsd.org, bug-followup@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@obluda.cz, dan@freebsd.cz, dan@kolej.mff.cuni.cz, dan@fio.cz
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409130640.i8D6eZbO046076>