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]

Re: gcc bug impacts glibc cvs


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   `------------------------


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