lto-lang.c (builtin_type_for_size): Use lto_type_for_size.
authorRichard Guenther <rguenther@suse.de>
Mon, 12 Mar 2012 14:17:26 +0000 (14:17 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 12 Mar 2012 14:17:26 +0000 (14:17 +0000)
2012-03-12  Richard Guenther  <rguenther@suse.de>

lto/
* lto-lang.c (builtin_type_for_size): Use lto_type_for_size.

fortran/
* f95-lang.c (builtin_type_for_size): Use gfc_type_for_size.

c-common/
* c-common.c (c_common_get_narrower): Use c_common_type_for_size.
(builtin_type_for_size): Likewise.

* config/alpha/alpha.c (alpha_gimplify_va_arg): Use
build_nonstandard_integer_type.

From-SVN: r185229

gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/config/alpha/alpha.c
gcc/fortran/ChangeLog
gcc/fortran/f95-lang.c
gcc/lto/ChangeLog
gcc/lto/lto-lang.c

index 76ec87daa6dd6c9752d4844c8ce2b75dcea90763..8c9d97773a8f90721652cf57b28a7a495f9dc4d9 100644 (file)
@@ -1,3 +1,8 @@
+2012-03-12  Richard Guenther  <rguenther@suse.de>
+
+       * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
+       build_nonstandard_integer_type.
+
 2012-03-12  Richard Guenther  <rguenther@suse.de>
 
        * tree.c (signed_or_unsigned_type_for): Use
index 7b927b9e60012759811beba8a83ac95d213b85bf..bb9c90191bf2c434ae26ac4586c36a008efe6826 100644 (file)
@@ -1,3 +1,8 @@
+2012-03-12  Richard Guenther  <rguenther@suse.de>
+
+       * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
+       (builtin_type_for_size): Likewise.
+
 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
 
        PR c++/52215
index 1d19251a65f41af27e209aa30f98445a60e6c6dd..b83f45b9d2c2a8c18406502cc9da316673e3f344 100644 (file)
@@ -1849,9 +1849,8 @@ c_common_get_narrower (tree op, int *unsignedp_ptr)
       /* C++0x scoped enumerations don't implicitly convert to integral
         type; if we stripped an explicit conversion to a larger type we
         need to replace it so common_type will still work.  */
-      tree type = (lang_hooks.types.type_for_size
-                  (TYPE_PRECISION (TREE_TYPE (op)),
-                   TYPE_UNSIGNED (TREE_TYPE (op))));
+      tree type = c_common_type_for_size (TYPE_PRECISION (TREE_TYPE (op)),
+                                         TYPE_UNSIGNED (TREE_TYPE (op)));
       op = fold_convert (type, op);
     }
   return op;
@@ -9259,7 +9258,7 @@ c_common_mark_addressable_vec (tree t)
 tree
 builtin_type_for_size (int size, bool unsignedp)
 {
-  tree type = lang_hooks.types.type_for_size (size, unsignedp);
+  tree type = c_common_type_for_size (size, unsignedp);
   return type ? type : error_mark_node;
 }
 
index e851df0850966c3ccc98535fafe2bd72b534b1f5..7305f6fbb26a54326bdc62ad4547d2f4bfee3b0c 100644 (file)
@@ -6228,7 +6228,7 @@ alpha_gimplify_va_arg (tree valist, tree type, gimple_seq *pre_p,
      offset field so that it's the proper width for pointer arithmetic.  */
   base = get_formal_tmp_var (base_field, pre_p);
 
-  t = fold_convert (lang_hooks.types.type_for_size (64, 0), offset_field);
+  t = fold_convert (build_nonstandard_integer_type (64, 0), offset_field);
   offset = get_initialized_tmp_var (t, pre_p, NULL);
 
   indirect = pass_by_reference (NULL, TYPE_MODE (type), type, false);
index 7a0ec87126656ced79219fe33e28d40134284931..eae8b067ae34f62fd2a7ab4194ca3ba2b482a6e8 100644 (file)
@@ -1,3 +1,7 @@
+2012-03-12  Richard Guenther  <rguenther@suse.de>
+
+       * f95-lang.c (builtin_type_for_size): Use gfc_type_for_size.
+
 2012-03-12  Tobias Burnus  <burnus@net-b.de>
 
        PR fortran/52542
index 52d1887661a04b881b85ca66cf2246b685f048c0..05b598ff3ec04573a78a96815ff7481fb4ee9747 100644 (file)
@@ -605,7 +605,7 @@ build_builtin_fntypes (tree *fntype, tree type)
 static tree
 builtin_type_for_size (int size, bool unsignedp)
 {
-  tree type = lang_hooks.types.type_for_size (size, unsignedp);
+  tree type = gfc_type_for_size (size, unsignedp);
   return type ? type : error_mark_node;
 }
 
index 16624e61482f36a1238fb3b4140628941445378b..b35330eb2e6b19ca16916f574107edbbd8de3a97 100644 (file)
@@ -1,3 +1,7 @@
+2012-03-12  Richard Guenther  <rguenther@suse.de>
+
+       * lto-lang.c (builtin_type_for_size): Use lto_type_for_size.
+
 2012-03-06  Richard Guenther  <rguenther@suse.de>
 
        PR lto/52097
index d255e65d26d4c1728c04c5d649a9898272437789..999db8be4317fd3b35b2dade96e2b7c3b0be9418 100644 (file)
@@ -36,6 +36,8 @@ along with GCC; see the file COPYING3.  If not see
 #include "toplev.h"
 #include "lto-streamer.h"
 
+static tree lto_type_for_size (unsigned, int);
+
 static tree handle_noreturn_attribute (tree *, tree, tree, int, bool *);
 static tree handle_leaf_attribute (tree *, tree, tree, int, bool *);
 static tree handle_const_attribute (tree *, tree, tree, int, bool *);
@@ -523,7 +525,7 @@ def_fn_type (builtin_type def, builtin_type ret, bool var, int n, ...)
 static tree
 builtin_type_for_size (int size, bool unsignedp)
 {
-  tree type = lang_hooks.types.type_for_size (size, unsignedp);
+  tree type = lto_type_for_size (size, unsignedp);
   return type ? type : error_mark_node;
 }