aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/fold-const.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0cbc2c7..f0cf490 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
+
+ * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
+
2013-11-15 Uros Bizjak <ubizjak@gmail.com>
* lto-streamer-in.c (input function): Call cgraph_create_node if
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index 5ca7691..d08d0cd 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -13824,8 +13824,7 @@ fold_binary_loc (location_t loc,
and X >= signed_max+1 because previous transformations. */
if (code == LE_EXPR || code == GT_EXPR)
{
- tree st;
- st = signed_type_for (TREE_TYPE (arg1));
+ tree st = signed_type_for (arg1_type);
return fold_build2_loc (loc,
code == LE_EXPR ? GE_EXPR : LT_EXPR,
type, fold_convert_loc (loc, st, arg0),