OSDN Git Service

* coverage.c (tree_coverage_counter_ref): Fix computation of the new
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Aug 2004 14:05:15 +0000 (14:05 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Aug 2004 14:05:15 +0000 (14:05 +0000)
ARRAY_REF argument.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85477 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/coverage.c

index 30dfb57..de1e850 100644 (file)
@@ -1,3 +1,8 @@
+2004-08-03  Jan Hubicka  <jh@suse.cz>
+
+       * coverage.c (tree_coverage_counter_ref): Fix computation of the new
+       ARRAY_REF argument.
+
 2004-08-03  Richard Earnshaw  <rearnsha@arm.com>
 
        * arm-cores.def: Sort by architecture.  Add arm946es, arm966es,
index abaad02..4b4c636 100644 (file)
@@ -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))));
 }
 \f
 /* Generate a checksum for a string.  CHKSUM is the current