From d836edf84ffe456a95a8870651b7767566104740 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 3 Aug 2004 16:05:15 +0200 Subject: [PATCH] coverage.c (tree_coverage_counter_ref): Fix computation of the new ARRAY_REF argument. * coverage.c (tree_coverage_counter_ref): Fix computation of the new ARRAY_REF argument. From-SVN: r85477 --- gcc/ChangeLog | 5 +++++ gcc/coverage.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 30dfb57432a..de1e8508b1c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-08-03 Jan Hubicka + + * coverage.c (tree_coverage_counter_ref): Fix computation of the new + ARRAY_REF argument. + 2004-08-03 Richard Earnshaw * arm-cores.def: Sort by architecture. Add arm946es, arm966es, 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 -- 2.30.2