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

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
This commit is contained in:
Richard Guenther 2012-03-12 14:17:26 +00:00 committed by Richard Biener
parent 7ee6fd6836
commit 21fa2faf26
8 changed files with 26 additions and 7 deletions

View 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

View 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

View 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;
}

View 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);

View 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

View 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;
}

View 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

View 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;
}