<<< Date Index >>>     <<< Thread Index >>>

Re: Bug in Sun studio 11



On Friday, 15 June 2007 at 22:08, Vladimír Marek wrote:
> > > Hi, I found bug in SS11 which is triggered by mutt source. It makes
> > > function crc_matches return false even if the crc is correct. This
> > > virtually disables header cache.
> 
> > > unsigned int mycrc = 0;
> > > to
> > > static unsigned int mycrc = 0;
> 
> [...]
> 
> > Wow, that's voodoo. I don't see any harm in making the change though.
> 
> Making the variable static makes compiler to store the value to physical
> memory and not just to register. I can confirm that on SS12 the problem

you'd think &mycrc would have the same effect :)

> no longer exists. But at the same time, SS11 may not be fixed, since it
> is not priority anymore ...

I'll probably apply it. I'm just giving it time to see if any other C
gurus comment.

Attachment: pgpwu2Jq2V7IS.pgp
Description: PGP signature