This is the mail archive of the gcc-patches@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: [PATCH] add comment to sparseset.h about uninitialized data


Paolo Bonzini wrote:
> 
>> Note that even though I wrote sparseset.[hc] and the only use of
>> it is within the register allocator, I'm not sure whether I can
>> approve either patch...although, I guess the comment patch can
>> be considered obvious.
> 
> I would prefer to add a valgrind annotation, though that would work only
> if --enable-checking=valgrind is active.

I'm not keen on adding code that we don't need for correctness just to
keep valgrind happy.  If we can get by with a comment or annotation that
seems like a better choice.

FWIW,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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