This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: delay branch bug?


On Mon, May 24, 2010 at 08:14:13AM -0600, Jeff Law wrote:
> From a correctness standpoint, the uninitialized value will never be  
> used, so it should cause no ill effects on your code.  The biggest  
> effect would be tools like valgrind & purify (if supported on your  
> architecture) would report the uninitialized memory read.  [Which begs  
> the question how does purify handle this on sparc-solaris? ]

I believe valgrind doesn't report uninitialized memory reads, only tracks
that there is uninitialized value (or perhaps just some bits of it) in some
location and only reports when you actually use that somewhere (e.g. do a
conditional branch that depends on the uninitialized value etc.).

	Jakub


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