]> gcc.gnu.org Git - gcc.git/commitdiff
coverage.c (tree_coverage_counter_ref): Fix computation of the new ARRAY_REF argument.
authorJan Hubicka <jh@suse.cz>
Tue, 3 Aug 2004 14:05:15 +0000 (16:05 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 3 Aug 2004 14:05:15 +0000 (14:05 +0000)
* coverage.c (tree_coverage_counter_ref): Fix computation of the new
ARRAY_REF argument.

From-SVN: r85477

gcc/ChangeLog
gcc/coverage.c

index 30dfb57432a5e22d199f4a0049d7630b4e5ba38a..de1e8508b1cc890b6a1492f37fc5a774f8f7a21d 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 abaad02d11d8e20c464bf0de1d89094fd6543c29..4b4c63628343e3a4d4285f049193a5fcba84fc43 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
This page took 0.069821 seconds and 5 git commands to generate.