This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Miscompilation of glibc with CVS mainline
- From: Fergus Henderson <fjh at cs dot mu dot OZ dot AU>
- To: Ulrich Drepper <drepper at redhat dot com>
- Cc: John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>, "Martin v. L?wis" <martin at v dot loewis dot de>, jakub at redhat dot com, aj at suse dot de, gcc at gcc dot gnu dot org, libc-alpha at sources dot redhat dot com
- Date: Fri, 3 Jan 2003 11:13:55 +1100
- Subject: Re: Miscompilation of glibc with CVS mainline
- References: <200301021851.h02Ipmek011007@hiauly1.hia.nrc.ca> <3E149623.6000506@redhat.com>
On 02-Jan-2003, Ulrich Drepper <drepper@redhat.com> wrote:
> If you think about when the "optimization" can be used, it is very
> questionable at best whether it's useful. Why would anybody add a test
> for a function reference being NULL without the possibility of this
> being the case?
Inlining, macros, or templates can all lead to situations where the
compiler can optimize one instance of a test, even though the programmer
could not easily make the same optimization because there may be
other instances where the test is needed.
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.