This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: gcc bug impacts glibc cvs
- To: Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>
- Subject: Re: gcc bug impacts glibc cvs
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 12 Mar 2001 11:06:59 -0800
- Cc: Jack Howarth <howarth at bromo dot med dot uc dot edu>, libc-alpha at sources dot redhat dot com
- References: <Jack Howarth's message of "Mon, 12 Mar 2001 04:02:55 -0800(PST)"> <200103121202.EAA31792@bromo.med.uc.edu><5.0.2.1.2.20010312195016.02eb4738@mail.lauterbach.com>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
Franz Sirl <Franz.Sirl-kernel@lauterbach.com> writes:
> Well, currently this test is quite simple, every GCC does it
> potentially wrong so far. Maybe a fix can go into gcc-3.0, but most
> probably it won't be in gcc-2.95.3.
On x86 the problem seems not to appear:
extern void *xyzzy __attribute__ ((__weak__));
int
main (void)
{
return &xyzzy ? (xyzzy == (void *) 0) : 0;
}
This succeeds with -O0, -O1, -O2, -O3. Therefore I do not want a
work-around to go into glibc unconditionally.
If the above test is not enough let's refine it.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------