diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-03-07 14:31:40 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-03-07 14:31:40 +0000 |
commit | 1b3c3119971d15769babdee619abcca551fbe7ad (patch) | |
tree | 9367ae3ff084cabf2d89d91b25e317ab9c681ccc /gcc/coverage.c | |
parent | 3c9b85aa8f5bccac8161ee7145c6bd8f95a5b846 (diff) | |
download | gcc-1b3c3119971d15769babdee619abcca551fbe7ad.tar.gz |
2012-03-07 Richard Guenther <rguenther@suse.de>
* coverage.c (get_gcov_type): Use type_for_mode.
(get_gcov_unsigned_t): Likewise.
* expr.c (store_constructor): Use type_for_mode.
(try_casesi): Likewise.
* tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size):
Remove.
(add_standard_iv_candidates): Use standard type trees.
* dojump.c (do_jump): Remove dead code.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185048 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/coverage.c')
-rw-r--r-- | gcc/coverage.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/coverage.c b/gcc/coverage.c index ce8b175d2f7..14fe52f404b 100644 --- a/gcc/coverage.c +++ b/gcc/coverage.c @@ -131,7 +131,8 @@ static void coverage_obj_finish (VEC(constructor_elt,gc) *); tree get_gcov_type (void) { - return lang_hooks.types.type_for_size (GCOV_TYPE_SIZE, false); + enum machine_mode mode = smallest_mode_for_size (GCOV_TYPE_SIZE, MODE_INT); + return lang_hooks.types.type_for_mode (mode, false); } /* Return the type node for gcov_unsigned_t. */ @@ -139,7 +140,8 @@ get_gcov_type (void) static tree get_gcov_unsigned_t (void) { - return lang_hooks.types.type_for_size (32, true); + enum machine_mode mode = smallest_mode_for_size (32, MODE_INT); + return lang_hooks.types.type_for_mode (mode, true); } static hashval_t |