On Monday 15 December 2008 05:43:20 [email protected] wrote:
> Hello,
> 
> I have read the FAQ and searched the mailing lists (or tried to, there  
> were 100s of related posts) about this but...
> 
> The FAQ says:
> --------------------------------------------------
> As for eager reporting of copies of uninitialised memory values, this  
> has been suggested multiple times. Unfortunately, almost all programs  
> legitimately copy uninitialised memory values around (because  
> compilers pad structs to preserve alignment) and eager checking leads  
> to hundreds of false positives. Therefore Memcheck does not support  
> eager checking at this time."
> --------------------------------------------------
> 
> However it is possible to pack the structs without holes...

Huh?

struct foo {
  int x : 2;
};

GCC will allocate at least 1 byte of memory for this struct
independent of -fpack-struct.

        Florian

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to