[Various] libc/1161: Unable to get nscd to work on alpha
Horst von Brand
vonbrand@sleipnir.valparaiso.cl
Sat Jun 12 21:47:00 GMT 1999
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
More information about the Libc-alpha
mailing list