summaryrefslogtreecommitdiff
path: root/gcc/coverage.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-03 14:05:15 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-03 14:05:15 +0000
commite9ee282e1a7ffb499b706caad9ad0f3b8cef676e (patch)
treee65adf11ada3be14279f6b18e73291d5e1ee5311 /gcc/coverage.c
parent180e08bad53978e7b9af43f1da5a08fedfd00ba9 (diff)
downloadgcc-e9ee282e1a7ffb499b706caad9ad0f3b8cef676e.tar.gz
* coverage.c (tree_coverage_counter_ref): Fix computation of the new
ARRAY_REF argument. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85477 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/coverage.c')
-rw-r--r--gcc/coverage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/coverage.c b/gcc/coverage.c
index abaad02d11d..4b4c6362834 100644
--- a/gcc/coverage.c
+++ b/gcc/coverage.c
@@ -437,7 +437,7 @@ tree_coverage_counter_ref (unsigned counter, unsigned no)
fold_convert (domain_type, build_int_2 (no, 0)),
TYPE_MIN_VALUE (domain_type),
size_binop (EXACT_DIV_EXPR, TYPE_SIZE_UNIT (GCOV_TYPE_NODE),
- size_int (TYPE_ALIGN (GCOV_TYPE_NODE))));
+ size_int (TYPE_ALIGN_UNIT (GCOV_TYPE_NODE))));
}
/* Generate a checksum for a string. CHKSUM is the current