Avoid use of lang_hooks.types.type_for_size.
authorSebastian Pop <sebastian.pop@amd.com>
Tue, 26 Jul 2011 18:48:33 +0000 (18:48 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Tue, 26 Jul 2011 18:48:33 +0000 (18:48 +0000)
2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>

* tree-data-ref.c (max_stmt_executions_tree): Do not call
lang_hooks.types.type_for_size.

From-SVN: r176804

gcc/ChangeLog
gcc/tree-data-ref.c

index 92ca45b4dbc12ad863572bd9801124a8eed8f322..f2c9808a5990dd2e701c116d5560c0c957598038 100644 (file)
@@ -1,3 +1,8 @@
+2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
+
+       * tree-data-ref.c (max_stmt_executions_tree): Do not call
+       lang_hooks.types.type_for_size.
+
 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
 
        PR middle-end/47653
index 3e18e8d1837ec2dd6b389bf631dd0bd3893059fd..51badb48dd9760661ad93e1a8ff6e0f5dd27e873 100644 (file)
@@ -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