+2012-11-26 Eric Botcazou <ebotcazou@adacore.com>
+
+ * fold-const.c (const_binop): Adjust comment.
+ (extract_muldiv_1): Likewise.
+ (fold_comparison): Likewise.
+ * stor-layout.c (place_field): Fix typo.
+ * tree.c (double_int_fits_to_tree_p): Remove obsolete comment.
+ (force_fit_type_double): Likewise. Fix long line.
+
2012-11-26 Greta Yorsh <Greta.Yorsh@arm.com>
* config/arm/arm.h (TARGET_LDRD): Reject Thumb1 targets.
return NULL_TREE;
}
-/* Create a size type INT_CST node with NUMBER sign extended. KIND
+/* Create a sizetype INT_CST node with NUMBER sign extended. KIND
indicates which particular sizetype to create. */
tree
else
break;
- /* If we have an unsigned type is not a sizetype, we cannot widen
- the operation since it will change the result if the original
- computation overflowed. */
- if (TYPE_UNSIGNED (ctype)
- && ctype != type)
+ /* If we have an unsigned type, we cannot widen the operation since it
+ will change the result if the original computation overflowed. */
+ if (TYPE_UNSIGNED (ctype) && ctype != type)
break;
/* If we were able to eliminate our operation from the first side,
}
/* We can simplify the comparison to a comparison of the variable
offset parts if the constant offset parts are equal.
- Be careful to use signed size type here because otherwise we
+ Be careful to use signed sizetype here because otherwise we
mess with array offsets in the wrong way. This is possible
because pointer arithmetic is restricted to retain within an
object and overflow on pointer differences is undefined as of
|| (indirect_base0 && DECL_P (base0))
|| POINTER_TYPE_OVERFLOW_UNDEFINED))
{
- /* By converting to signed size type we cover middle-end pointer
+ /* By converting to signed sizetype we cover middle-end pointer
arithmetic which operates on unsigned pointer types of size
type size and ARRAY_REF offsets which are properly sign or
zero extended from their type in case it is narrower than
- size type. */
+ sizetype. */
if (offset0 == NULL_TREE)
offset0 = build_int_cst (ssizetype, 0);
else
bool
double_int_fits_to_tree_p (const_tree type, double_int cst)
{
- /* Size types *are* sign extended. */
bool sign_extended_type = !TYPE_UNSIGNED (type);
double_int ext
force_fit_type_double (tree type, double_int cst, int overflowable,
bool overflowed)
{
- bool sign_extended_type;
-
- /* Size types *are* sign extended. */
- sign_extended_type = !TYPE_UNSIGNED (type);
+ bool sign_extended_type = !TYPE_UNSIGNED (type);
/* If we need to set overflow flags, return a new unshared node. */
if (overflowed || !double_int_fits_to_tree_p(type, cst))
|| (overflowable > 0 && sign_extended_type))
{
tree t = make_node (INTEGER_CST);
- TREE_INT_CST (t) = cst.ext (TYPE_PRECISION (type),
- !sign_extended_type);
+ TREE_INT_CST (t)
+ = cst.ext (TYPE_PRECISION (type), !sign_extended_type);
TREE_TYPE (t) = type;
TREE_OVERFLOW (t) = 1;
return t;