This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Re: [Various] libc/1161: Unable to get nscd to work on alpha
- To: Thorsten Kukuk <kukuk@suse.de>
- Subject: Re: [Various] libc/1161: Unable to get nscd to work on alpha
- From: Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
- Date: Sat, 12 Jun 1999 21:01:35 -0400
- cc: Andreas Jaeger <aj@arthur.rhein-neckar.de>, libc-alpha Mailinglist <libc-alpha@sourceware.cygnus.com>, sba@srl.caltech.edu
Thorsten Kukuk <kukuk@suse.de> said:
> On Sat, Jun 12, Andreas Jaeger wrote:
> > Is there anything we can do to fix nscd on alpha? I fear this is a
> > compiler bug:-(. Richard, can you help?
> It's an older bug which I have already send twice to the egcs people
> without getting an reaction.
>
> egcs miscompiles the following lines from nscd/cache.c:
>
> /* Put the new entry in the first position. */
> do
> newp->next = table->array[hash];
> while (! compare_and_swap ((volatile long int *) &table->array[hash],
Have you tried adding -fno-strict-aliases? Without it late egcs snapshots
at least assume data can't be accessed through a pointer to a different
type, unless it is a char pointer (this is what the standard says, and egcs
follows). Bit me hard.
Just a random shot at the dark...
--
Horst von Brand vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viņa del Mar, Chile +56 32 672616