diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 92ca45b4dbc..f2c9808a599 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-07-26 Sebastian Pop + + * tree-data-ref.c (max_stmt_executions_tree): Do not call + lang_hooks.types.type_for_size. + 2011-07-26 Sebastian Pop PR middle-end/47653 diff --git a/gcc/tree-data-ref.c b/gcc/tree-data-ref.c index 3e18e8d1837..51badb48dd9 100644 --- a/gcc/tree-data-ref.c +++ b/gcc/tree-data-ref.c @@ -1614,16 +1614,14 @@ static tree max_stmt_executions_tree (struct loop *loop) { double_int nit; - tree type; if (!max_stmt_executions (loop, true, &nit)) return chrec_dont_know; - type = lang_hooks.types.type_for_size (INT_TYPE_SIZE, true); - if (!double_int_fits_to_tree_p (type, nit)) + if (!double_int_fits_to_tree_p (unsigned_type_node, nit)) return chrec_dont_know; - return double_int_to_tree (type, nit); + return double_int_to_tree (unsigned_type_node, nit); } /* Analyze a SIV (Single Index Variable) subscript where CHREC_A is a