diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2012-11-26 12:01:07 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2012-11-26 12:01:07 +0000 |
commit | 67ae67ec9487385b396ed1ca5a0b8da8da915061 (patch) | |
tree | d4ff652452f8d0f4b4d25e5a8d66aba916bef128 /gcc/tree.c | |
parent | 29be7510afa5761eb64db71df7ef8b2d2d57d8cf (diff) | |
download | gcc-67ae67ec9487385b396ed1ca5a0b8da8da915061.zip gcc-67ae67ec9487385b396ed1ca5a0b8da8da915061.tar.gz gcc-67ae67ec9487385b396ed1ca5a0b8da8da915061.tar.bz2 |
fold-const.c (const_binop): Adjust comment.
* 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.
From-SVN: r193812
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -1074,7 +1074,6 @@ double_int_to_tree (tree type, double_int cst) 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 @@ -1102,10 +1101,7 @@ tree 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)) @@ -1115,8 +1111,8 @@ force_fit_type_double (tree type, double_int cst, int overflowable, || (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; |