diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2006-05-04 02:02:01 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2006-05-04 02:02:01 +0000 |
commit | 0ef1a53701b2673cab9c1a342694d66af5dc580a (patch) | |
tree | f4bdab40a6285b62021ff81ad58f48d1a48a14b8 /gcc/coverage.c | |
parent | e5f7bf9f5c82c90a39f41e7dfea274e2b002c11c (diff) | |
download | gcc-0ef1a53701b2673cab9c1a342694d66af5dc580a.zip gcc-0ef1a53701b2673cab9c1a342694d66af5dc580a.tar.gz gcc-0ef1a53701b2673cab9c1a342694d66af5dc580a.tar.bz2 |
re PR java/8260 (gcj -fprofile-arcs doesn't work)
PR java/8260
* coverage.c: Use get_gcov_unsigned_t() instead of
unsigned_type_node all over.
From-SVN: r113512
Diffstat (limited to 'gcc/coverage.c')
-rw-r--r-- | gcc/coverage.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/coverage.c b/gcc/coverage.c index 9d66e9e..3833930 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 */ |