Commit 825c743c by Richard Guenther Committed by Richard Biener

alloc-pool.c (pool_alloc): Fix valgrind annotation.

2012-08-21  Richard Guenther  <rguenther@suse.de>

	* alloc-pool.c (pool_alloc): Fix valgrind annotation.
	* tree.h: Fix typo and complete flags documentation.

From-SVN: r190559
parent c1aaec5b
2012-08-21 Richard Guenther <rguenther@suse.de> 2012-08-21 Richard Guenther <rguenther@suse.de>
* alloc-pool.c (pool_alloc): Fix valgrind annotation.
* tree.h: Fix typo and complete flags documentation.
2012-08-21 Richard Guenther <rguenther@suse.de>
* tree.h (struct tree_base): Add union to make it possible to * tree.h (struct tree_base): Add union to make it possible to
re-use the upper 4 bytes for tree codes that do not need as re-use the upper 4 bytes for tree codes that do not need as
many flags as others. Move visited and default_def_flag to many flags as others. Move visited and default_def_flag to
......
...@@ -247,7 +247,9 @@ void * ...@@ -247,7 +247,9 @@ void *
pool_alloc (alloc_pool pool) pool_alloc (alloc_pool pool)
{ {
alloc_pool_list header; alloc_pool_list header;
VALGRIND_DISCARD (int size); #ifdef ENABLE_VALGRIND_CHECKING
int size;
#endif
if (GATHER_STATISTICS) if (GATHER_STATISTICS)
{ {
...@@ -260,7 +262,9 @@ pool_alloc (alloc_pool pool) ...@@ -260,7 +262,9 @@ pool_alloc (alloc_pool pool)
} }
gcc_checking_assert (pool); gcc_checking_assert (pool);
VALGRIND_DISCARD (size = pool->elt_size - offsetof (allocation_object, u.data)); #ifdef ENABLE_VALGRIND_CHECKING
size = pool->elt_size - offsetof (allocation_object, u.data);
#endif
/* If there are no more free elements, make some more!. */ /* If there are no more free elements, make some more!. */
if (!pool->returned_free_list) if (!pool->returned_free_list)
......
...@@ -417,7 +417,7 @@ enum omp_clause_code ...@@ -417,7 +417,7 @@ enum omp_clause_code
so all nodes have these fields. so all nodes have these fields.
See the accessor macros, defined below, for documentation of the See the accessor macros, defined below, for documentation of the
fields, and the table below which connects the fileds and the fields, and the table below which connects the fields and the
accessor macros. */ accessor macros. */
struct GTY(()) tree_base { struct GTY(()) tree_base {
...@@ -494,6 +494,9 @@ struct GTY(()) tree_base { ...@@ -494,6 +494,9 @@ struct GTY(()) tree_base {
CASE_LOW_SEEN in CASE_LOW_SEEN in
CASE_LABEL_EXPR CASE_LABEL_EXPR
PREDICT_EXPR_OUTCOME in
PREDICT_EXPR
static_flag: static_flag:
TREE_STATIC in TREE_STATIC in
...@@ -576,12 +579,16 @@ struct GTY(()) tree_base { ...@@ -576,12 +579,16 @@ struct GTY(()) tree_base {
OMP_PARALLEL_COMBINED in OMP_PARALLEL_COMBINED in
OMP_PARALLEL OMP_PARALLEL
OMP_CLAUSE_PRIVATE_OUTER_REF in OMP_CLAUSE_PRIVATE_OUTER_REF in
OMP_CLAUSE_PRIVATE OMP_CLAUSE_PRIVATE
TYPE_REF_IS_RVALUE in TYPE_REF_IS_RVALUE in
REFERENCE_TYPE REFERENCE_TYPE
ENUM_IS_OPAQUE in
ENUMERAL_TYPE
protected_flag: protected_flag:
TREE_PROTECTED in TREE_PROTECTED in
......
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