This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Miscompilation of glibc with CVS mainline


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]