summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2006-05-04 02:02:01 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2006-05-04 02:02:01 +0000
commit58158e5bb571562e8ac566c9f6c0623976a1b765 (patch)
treef4bdab40a6285b62021ff81ad58f48d1a48a14b8
parentbacb3e962acc85f9f0676caaa53853011faa3d44 (diff)
downloadgcc-58158e5bb571562e8ac566c9f6c0623976a1b765.tar.gz
PR java/8260
* coverage.c: Use get_gcov_unsigned_t() instead of unsigned_type_node all over. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113512 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/coverage.c16
2 files changed, 14 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8f29f82529c..31310c69408 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2006-05-03 Alexandre Oliva <aoliva@redhat.com>
+
+ PR java/8260
+ * coverage.c: Use get_gcov_unsigned_t() instead of
+ unsigned_type_node all over.
+
2006-05-02 Andrew MacLeod <amacleod@redhat.com>
PR tree-optimization/27381
diff --git a/gcc/coverage.c b/gcc/coverage.c
index 9d66e9e0589..38339304a30 100644
--- a/gcc/coverage.c
+++ b/gcc/coverage.c
@@ -609,7 +609,7 @@ build_fn_info_type (unsigned int counters)
array_type = build_int_cst (NULL_TREE, counters - 1);
array_type = build_index_type (array_type);
- array_type = build_array_type (unsigned_type_node, array_type);
+ array_type = build_array_type (get_gcov_unsigned_t (), array_type);
/* counters */
field = build_decl (FIELD_DECL, NULL_TREE, array_type);
@@ -647,7 +647,7 @@ build_fn_info_value (const struct function_list *function, tree type)
for (ix = 0; ix != GCOV_COUNTERS; ix++)
if (prg_ctr_mask & (1 << ix))
{
- tree counters = build_int_cstu (unsigned_type_node,
+ tree counters = build_int_cstu (get_gcov_unsigned_t (),
function->n_ctrs[ix]);
array_value = tree_cons (NULL_TREE, counters, array_value);
@@ -687,7 +687,7 @@ build_ctr_info_type (void)
/* merge */
gcov_merge_fn_type =
build_function_type_list (void_type_node,
- gcov_ptr_type, unsigned_type_node,
+ gcov_ptr_type, get_gcov_unsigned_t (),
NULL_TREE);
field = build_decl (FIELD_DECL, NULL_TREE,
build_pointer_type (gcov_merge_fn_type));
@@ -721,7 +721,7 @@ build_ctr_info_value (unsigned int counter, tree type)
{
tree array_type;
- array_type = build_int_cstu (unsigned_type_node,
+ array_type = build_int_cstu (get_gcov_unsigned_t (),
prg_n_ctrs[counter] - 1);
array_type = build_index_type (array_type);
array_type = build_array_type (TREE_TYPE (TREE_TYPE (fields)),
@@ -850,11 +850,11 @@ build_gcov_info (void)
fn_info_value = null_pointer_node;
/* number of functions */
- field = build_decl (FIELD_DECL, NULL_TREE, unsigned_type_node);
+ field = build_decl (FIELD_DECL, NULL_TREE, get_gcov_unsigned_t ());
TREE_CHAIN (field) = fields;
fields = field;
value = tree_cons (field,
- build_int_cstu (unsigned_type_node, n_fns),
+ build_int_cstu (get_gcov_unsigned_t (), n_fns),
value);
/* fn_info table */
@@ -864,11 +864,11 @@ build_gcov_info (void)
value = tree_cons (field, fn_info_value, value);
/* counter_mask */
- field = build_decl (FIELD_DECL, NULL_TREE, unsigned_type_node);
+ field = build_decl (FIELD_DECL, NULL_TREE, get_gcov_unsigned_t ());
TREE_CHAIN (field) = fields;
fields = field;
value = tree_cons (field,
- build_int_cstu (unsigned_type_node, prg_ctr_mask),
+ build_int_cstu (get_gcov_unsigned_t (), prg_ctr_mask),
value);
/* counters */