This is the mail archive of the libc-alpha@sourceware.cygnus.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: [Various] libc/1161: Unable to get nscd to work on alpha


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

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