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: Dale Johannesen <dalej at apple dot com>
- To: prj at po dot cwru dot edu (Paul Jarc)
- Cc: Dale Johannesen <dalej at apple dot com>, John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>, gcc at gcc dot gnu dot org, libc-alpha at sources dot redhat dot com
- Date: Thu, 2 Jan 2003 11:10:06 -0800
- Subject: 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.