From: Mikhail Maltsev Date: Wed, 23 Sep 2015 02:31:14 +0000 (+0000) Subject: Fix use of valgrind API X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0c6126b47da9afbd99e5a353297b577ed2cdd09f;p=gcc.git Fix use of valgrind API gcc/ PR middle-end/67649 * memory-block.h (memory_block_pool::allocate): Use valgrind API to mark the block as accessible. From-SVN: r228033 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 16272554880..3c79492f22b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-09-23 Mikhail Maltsev + + PR middle-end/67649 + * memory-block.h (memory_block_pool::allocate): Use valgrind API to + mark the block as accessible. + 2015-09-22 Segher Boessenkool * function.c (thread_prologue_and_epilogue_insns): Delete diff --git a/gcc/memory-block.h b/gcc/memory-block.h index 1a495eaea0e..8b1202ba44e 100644 --- a/gcc/memory-block.h +++ b/gcc/memory-block.h @@ -57,6 +57,7 @@ memory_block_pool::allocate () void *result = instance.m_blocks; instance.m_blocks = instance.m_blocks->m_next; + VALGRIND_DISCARD (VALGRIND_MAKE_MEM_UNDEFINED (result, block_size)); return result; }