Miscompilation of glibc with CVS mainline

Dale Johannesen dalej@apple.com
Thu Jan 2 19:10:00 GMT 2003


On Thursday, January 2, 2003, at 10:58  AM, Paul Jarc wrote:

> "John David Anglin" <dave@hiauly1.hia.nrc.ca> wrote:
>> I can't seem to find where the standard says &weak_func is always
>> unequal to null.
>
> n869 6.3.2.3p3: "[...] the resulting pointer, called a null pointer,
> is guaranteed to compare unequal to a pointer to any object or
> function."

History:  the 2.95 doc had this in the "Certain Changes We Don't Want 
to Make" section:

> @item
> Assuming (for optimization) that the address of an external symbol is
> never zero.
>
> This assumption is false on certain systems when @samp{#pragma weak} is
> used.

It's not there any more.



More information about the Libc-alpha mailing list