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


On Tue, 2007-10-30 at 16:09 -0700, Janis Johnson wrote:
> For mainline cc1 with the testcase in PR33635 with -O1, valgrind reports
> use of uninitialized values for sparse sets.  The same problem was
> reported in PR33796, in which Peter Bergner explained why the use of
> uninitialized data is not a problem.  This patch adds a comment so that
> future users of valgrind won't file further bug reports or patches for
> this particular issue.  OK for mainline?

Talking with Kenny offline, he seems to prefer adding a memset in
sparseset_alloc() which would take care of the issue too.  As I mention
in the bugzilla, the memset is not required for correctness, but I am
willing to do whatever people feel is best.

Peter





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