From 21fa2faf26529ce8b1265a8d02409a727df35221 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Mon, 12 Mar 2012 14:17:26 +0000 Subject: [PATCH] lto-lang.c (builtin_type_for_size): Use lto_type_for_size. 2012-03-12 Richard Guenther 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 | 5 +++++ gcc/c-family/ChangeLog | 5 +++++ gcc/c-family/c-common.c | 7 +++---- gcc/config/alpha/alpha.c | 2 +- gcc/fortran/ChangeLog | 4 ++++ gcc/fortran/f95-lang.c | 2 +- gcc/lto/ChangeLog | 4 ++++ gcc/lto/lto-lang.c | 4 +++- 8 files changed, 26 insertions(+), 7 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 76ec87daa6d..8c9d97773a8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-03-12 Richard Guenther + + * config/alpha/alpha.c (alpha_gimplify_va_arg): Use + build_nonstandard_integer_type. + 2012-03-12 Richard Guenther * tree.c (signed_or_unsigned_type_for): Use diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 7b927b9e600..bb9c90191bf 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,8 @@ +2012-03-12 Richard Guenther + + * c-common.c (c_common_get_narrower): Use c_common_type_for_size. + (builtin_type_for_size): Likewise. + 2012-02-13 Jakub Jelinek PR c++/52215 diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c index 1d19251a65f..b83f45b9d2c 100644 --- a/gcc/c-family/c-common.c +++ b/gcc/c-family/c-common.c @@ -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; } diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index e851df08509..7305f6fbb26 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -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); diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 7a0ec871266..eae8b067ae3 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,7 @@ +2012-03-12 Richard Guenther + + * f95-lang.c (builtin_type_for_size): Use gfc_type_for_size. + 2012-03-12 Tobias Burnus PR fortran/52542 diff --git a/gcc/fortran/f95-lang.c b/gcc/fortran/f95-lang.c index 52d1887661a..05b598ff3ec 100644 --- a/gcc/fortran/f95-lang.c +++ b/gcc/fortran/f95-lang.c @@ -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; } diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index 16624e61482..b35330eb2e6 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,7 @@ +2012-03-12 Richard Guenther + + * lto-lang.c (builtin_type_for_size): Use lto_type_for_size. + 2012-03-06 Richard Guenther PR lto/52097 diff --git a/gcc/lto/lto-lang.c b/gcc/lto/lto-lang.c index d255e65d26d..999db8be431 100644 --- a/gcc/lto/lto-lang.c +++ b/gcc/lto/lto-lang.c @@ -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; }