alloc-pool.c (pool_alloc): Fix valgrind annotation.
authorRichard Guenther <rguenther@suse.de>
Tue, 21 Aug 2012 11:26:16 +0000 (11:26 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 21 Aug 2012 11:26:16 +0000 (11:26 +0000)
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

gcc/ChangeLog
gcc/alloc-pool.c
gcc/tree.h

index 86af7cc63ffff1dc902dd5f571eec48dff7675f4..339ad330d84fa34251469cf25d6c2b4e8a93b311 100644 (file)
@@ -1,3 +1,8 @@
+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
index 9a588089e776bdd51415018cd966060d53d0f67b..bedcf1f8bfff2d76c88a3fac1c156e15a1d2e357 100644 (file)
@@ -247,7 +247,9 @@ void *
 pool_alloc (alloc_pool pool)
 {
   alloc_pool_list header;
-  VALGRIND_DISCARD (int size);
+#ifdef ENABLE_VALGRIND_CHECKING
+  int size;
+#endif
 
   if (GATHER_STATISTICS)
     {
@@ -260,7 +262,9 @@ pool_alloc (alloc_pool 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 (!pool->returned_free_list)
index fef9e0d068e60280cad50320471bdc402d45fc41..f332fddded076f1d6c3fb92773f325e87f4f3798 100644 (file)
@@ -417,7 +417,7 @@ enum omp_clause_code
    so all nodes have these fields.
 
    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.  */
 
 struct GTY(()) tree_base {
@@ -494,6 +494,9 @@ struct GTY(()) tree_base {
        CASE_LOW_SEEN in
            CASE_LABEL_EXPR
 
+       PREDICT_EXPR_OUTCOME in
+          PREDICT_EXPR
+
    static_flag:
 
        TREE_STATIC in
@@ -576,12 +579,16 @@ struct GTY(()) tree_base {
 
        OMP_PARALLEL_COMBINED in
            OMP_PARALLEL
+
        OMP_CLAUSE_PRIVATE_OUTER_REF in
           OMP_CLAUSE_PRIVATE
 
        TYPE_REF_IS_RVALUE in
           REFERENCE_TYPE
 
+       ENUM_IS_OPAQUE in
+          ENUMERAL_TYPE
+
    protected_flag:
 
        TREE_PROTECTED in