* c-typeck.c (pointer_diff): Use c_common_type_for_size.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185047
138bc75d-0d04-0410-961f-
82ee72b054a4
2012-03-07 Richard Guenther <rguenther@suse.de>
+ * c-typeck.c (pointer_diff): Use c_common_type_for_size.
+
+2012-03-07 Richard Guenther <rguenther@suse.de>
+
* convert.c (strip_float_extensions): Move ...
* tree.c (strip_float_extensions): ... here.
be the same as the result type (ptrdiff_t), but may need to be a wider
type if pointers for the address space are wider than ptrdiff_t. */
if (TYPE_PRECISION (restype) < TYPE_PRECISION (TREE_TYPE (op0)))
- inttype = lang_hooks.types.type_for_size
- (TYPE_PRECISION (TREE_TYPE (op0)), 0);
+ inttype = c_common_type_for_size (TYPE_PRECISION (TREE_TYPE (op0)), 0);
else
inttype = restype;