Commit 0c6126b4 by Mikhail Maltsev Committed by Mikhail Maltsev

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
parent dbfc22a4
2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
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 <segher@kernel.crashing.org> 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
* function.c (thread_prologue_and_epilogue_insns): Delete * function.c (thread_prologue_and_epilogue_insns): Delete
...@@ -57,6 +57,7 @@ memory_block_pool::allocate () ...@@ -57,6 +57,7 @@ memory_block_pool::allocate ()
void *result = instance.m_blocks; void *result = instance.m_blocks;
instance.m_blocks = instance.m_blocks->m_next; instance.m_blocks = instance.m_blocks->m_next;
VALGRIND_DISCARD (VALGRIND_MAKE_MEM_UNDEFINED (result, block_size));
return result; return result;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment