aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2012-03-12 14:17:26 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2012-03-12 14:17:26 +0000
commit21fa2faf26529ce8b1265a8d02409a727df35221 (patch)
tree9a64c03995773062640a21db49850e4ab2339e03 /gcc
parent7ee6fd6836b487a0229b69821c71b6878b529870 (diff)
downloadgcc-21fa2faf26529ce8b1265a8d02409a727df35221.zip
gcc-21fa2faf26529ce8b1265a8d02409a727df35221.tar.gz
gcc-21fa2faf26529ce8b1265a8d02409a727df35221.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/c-family/ChangeLog5
-rw-r--r--gcc/c-family/c-common.c7
-rw-r--r--gcc/config/alpha/alpha.c2
-rw-r--r--gcc/fortran/ChangeLog4
-rw-r--r--gcc/fortran/f95-lang.c2
-rw-r--r--gcc/lto/ChangeLog4
-rw-r--r--gcc/lto/lto-lang.c4
8 files changed, 26 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 76ec87d..8c9d977 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
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
build_nonstandard_integer_type.
(signed_type_for): Adjust documentation.
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index 7b927b9..bb9c901 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -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
diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c
index 1d19251..b83f45b 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 e851df0..7305f6f 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 7a0ec87..eae8b06 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -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
diff --git a/gcc/fortran/f95-lang.c b/gcc/fortran/f95-lang.c
index 52d1887..05b598f 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 16624e6..b35330e 100644
--- a/gcc/lto/ChangeLog
+++ b/gcc/lto/ChangeLog
@@ -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
diff --git a/gcc/lto/lto-lang.c b/gcc/lto/lto-lang.c
index d255e65..999db8b 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;
}