|
From: <Joe...@pd...> - 2005-04-19 08:50:54
|
I get a "Use of uninitialised value of size 8" message with following =
code:
//////////////
struct S
{
double d;
};
int main()
{
S s, t;
s =3D t; // <- warning
}
//////////////
I think the general policy is that this should not warn. At least the =
manual suggests it.=20
The compiler (G++ 3.3.3/3.4.2) generates a fldl/fstpl pair to copy the =
double.=20
I suppose the valid bits are not kept for the FPU? Is this right?
What do others do to mute such warnings?
Joerg
|
|
From: Tom H. <to...@co...> - 2005-04-19 08:59:05
|
In message <BE0...@ex...>
J=C3=B6rg Richter <Joe...@pd...> wrote:
> int main()
> {
> S s, t;
> s =3D t; // <- warning
> }
>
> I think the general policy is that this should not warn. At least
> the manual suggests it.=20
That's true for integer instructions, but not for floating point
instructions.
> I suppose the valid bits are not kept for the FPU? Is this right?
Correct. In valgrind 3 this will be fixed.
Tom
--=20
Tom Hughes (to...@co...)
http://www.compton.nu/
|