aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2012-11-26 12:01:07 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2012-11-26 12:01:07 +0000
commit67ae67ec9487385b396ed1ca5a0b8da8da915061 (patch)
treed4ff652452f8d0f4b4d25e5a8d66aba916bef128 /gcc/tree.c
parent29be7510afa5761eb64db71df7ef8b2d2d57d8cf (diff)
downloadgcc-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.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 8b2a4f9..7cacb2a 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -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;