https://bugs.kde.org/show_bug.cgi?id=387766

--- Comment #7 from Markus Trippelsdorf <octopl...@yandex.com> ---
The ENABLE_VALGRIND_ANNOTATIONS logic is in gcc/system.h:1143.

sparseset allocations are already handled in gcc/sparseset.c:

 25 /* Allocate and clear a n_elms SparseSet.  */
 26
 27 sparseset
 28 sparseset_alloc (SPARSESET_ELT_TYPE n_elms)
 29 {
 30   unsigned int n_bytes = sizeof (struct sparseset_def)
 31                          + ((n_elms - 1) * 2 * sizeof
(SPARSESET_ELT_TYPE));
 32
 33   sparseset set = XNEWVAR (struct sparseset_def, n_bytes);
 34
 35   /* Mark the sparseset as defined to silence some valgrind uninitialized
 36      read errors when accessing set->sparse[n] when "n" is not, and never
has
 37      been, in the set.  These uninitialized reads are expected, by design
and
 38      harmless.  */
 39   VALGRIND_DISCARD (VALGRIND_MAKE_MEM_DEFINED (set, n_bytes));

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to