Miscompilation of glibc with CVS mainline
Fergus Henderson
fjh@cs.mu.OZ.AU
Fri Jan 3 00:14:00 GMT 2003
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.
More information about the Libc-alpha
mailing list