On Mon, Apr 5, 2010 at 04:47, rguenth at gcc dot gnu dot org
<gcc-bugzi...@gcc.gnu.org> wrote:
> You shouldn't be using type_for_size but instead use
> build_nonstandard_integer_type.

I copied this from another LNO pass, should I also update that pass?
What about this patch?

Sebastian
From 504de7abe45a6b5f663c22e1fef54964c19d7528 Mon Sep 17 00:00:00 2001
From: Sebastian Pop <seb...@gmail.com>
Date: Mon, 5 Apr 2010 12:16:22 -0500
Subject: [PATCH] Use build_nonstandard_integer_type.

---
 gcc/graphite-clast-to-gimple.c |    4 ++--
 gcc/tree-ssa-loop-ivopts.c     |    2 +-
 gcc/tree-ssa-loop-manip.c      |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/gcc/graphite-clast-to-gimple.c b/gcc/graphite-clast-to-gimple.c
index 66089ae..3866eec 100644
--- a/gcc/graphite-clast-to-gimple.c
+++ b/gcc/graphite-clast-to-gimple.c
@@ -233,7 +233,7 @@ max_signed_precision_type (tree type1, tree type2)
   int p1 = TYPE_PRECISION (type1);
   int p2 = TYPE_PRECISION (type2);
   int precision = p1 > p2 ? p1 : p2;
-  tree type = lang_hooks.types.type_for_size (precision, false);
+  tree type = build_nonstandard_integer_type (precision, false);
 
   if (!type)
     {
@@ -485,7 +485,7 @@ gcc_type_for_interval (Value low, Value up, tree old_type)
   prec_int = precision_for_interval (low, up);
   precision = prec_up > prec_int ? prec_up : prec_int;
 
-  type = lang_hooks.types.type_for_size (precision, unsigned_p);
+  type = build_nonstandard_integer_type (precision, unsigned_p);
   if (!type)
     {
       gloog_error = true;
diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c
index e6565db..486243f 100644
--- a/gcc/tree-ssa-loop-ivopts.c
+++ b/gcc/tree-ssa-loop-ivopts.c
@@ -2291,7 +2291,7 @@ static void
 add_standard_iv_candidates_for_size (struct ivopts_data *data,
 				     unsigned int size)
 {
-  tree type = lang_hooks.types.type_for_size (size, true);
+  tree type = build_nonstandard_integer_type (size, true);
   add_candidate (data, build_int_cst (type, 0), build_int_cst (type, 1),
 		 true, NULL);
 }
diff --git a/gcc/tree-ssa-loop-manip.c b/gcc/tree-ssa-loop-manip.c
index 7818f5b..c09a2ed 100644
--- a/gcc/tree-ssa-loop-manip.c
+++ b/gcc/tree-ssa-loop-manip.c
@@ -1207,7 +1207,7 @@ canonicalize_loop_ivs (struct loop *loop, tree *nit, bool bump_in_latch)
 	precision = TYPE_PRECISION (TREE_TYPE (res));
     }
 
-  type = lang_hooks.types.type_for_size (precision, 1);
+  type = build_nonstandard_integer_type (precision, 1);
 
   if (original_precision != precision)
     {
-- 
1.6.3.3

Reply via email to