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
This commit is contained in:
Jan Hubicka 2004-08-03 16:05:15 +02:00 committed by Jan Hubicka
parent f9e8581ad4
commit d836edf84f
2 changed files with 6 additions and 1 deletions

View 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,

View 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))));
}
/* Generate a checksum for a string. CHKSUM is the current