aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-family
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2012-05-10 07:58:27 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2012-05-10 07:58:27 +0000
commit3ac8781c36d6f1ce612e5233dc9254d2d8cee5ca (patch)
tree1b55fc7996845f84a927496e5f0f6f7aa9d75d19 /gcc/c-family
parent26c7244823b6d5c3c0cdc86cf411e6e6860ddb16 (diff)
downloadgcc-3ac8781c36d6f1ce612e5233dc9254d2d8cee5ca.zip
gcc-3ac8781c36d6f1ce612e5233dc9254d2d8cee5ca.tar.gz
gcc-3ac8781c36d6f1ce612e5233dc9254d2d8cee5ca.tar.bz2
cuintp.c (UI_From_gnu): Remove TYPE_IS_SIZETYPE use.
2012-05-10 Richard Guenther <rguenther@suse.de> ada/ * gcc-interface/cuintp.c (UI_From_gnu): Remove TYPE_IS_SIZETYPE use. c-family/ * c-common.c (c_sizeof_or_alignof_type): Remove assert and adjust commentary about TYPE_IS_SIZETYPE types. * tree.h (TYPE_IS_SIZETYPE): Remove. * fold-const.c (int_const_binop_1): Remove TYPE_IS_SIZETYPE use. (extract_muldiv_1): Likewise. * gimple.c (gtc_visit): Likewise. (gimple_types_compatible_p): Likewise. (iterative_hash_canonical_type): Likewise. (gimple_canonical_types_compatible_p): Likewise. * gimplify.c (gimplify_one_sizepos): Likewise. * print-tree.c (print_node): Likewise. * stor-layout.c (initialize_sizetypes): Do not set TYPE_IS_SIZETYPE. From-SVN: r187363
Diffstat (limited to 'gcc/c-family')
-rw-r--r--gcc/c-family/ChangeLog5
-rw-r--r--gcc/c-family/c-common.c8
2 files changed, 8 insertions, 5 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index 52a7f5c..f0e6147 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -1,3 +1,8 @@
+2012-05-10 Richard Guenther <rguenther@suse.de>
+
+ * c-common.c (c_sizeof_or_alignof_type): Remove assert and
+ adjust commentary about TYPE_IS_SIZETYPE types.
+
2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c++/53261
diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c
index 1cdef9a..a5ddbee 100644
--- a/gcc/c-family/c-common.c
+++ b/gcc/c-family/c-common.c
@@ -4539,12 +4539,10 @@ c_sizeof_or_alignof_type (location_t loc,
value = size_int (TYPE_ALIGN_UNIT (type));
}
- /* VALUE will have an integer type with TYPE_IS_SIZETYPE set.
- TYPE_IS_SIZETYPE means that certain things (like overflow) will
- never happen. However, this node should really have type
- `size_t', which is just a typedef for an ordinary integer type. */
+ /* VALUE will have the middle-end integer type sizetype.
+ However, we should really return a value of type `size_t',
+ which is just a typedef for an ordinary integer type. */
value = fold_convert_loc (loc, size_type_node, value);
- gcc_assert (!TYPE_IS_SIZETYPE (TREE_TYPE (value)));
return value;
}