From: Eric Botcazou Date: Fri, 15 Nov 2013 11:07:40 +0000 (+0000) Subject: * fold-const.c (fold_binary_loc) : Reuse local variable. X-Git-Tag: releases/gcc-4.9.0~2769 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d877729c89a04e57f4acdff574120f7e1dd275d0;p=thirdparty%2Fgcc.git * fold-const.c (fold_binary_loc) : Reuse local variable. From-SVN: r204839 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0cbc2c72c7a6..f0cf49055ac3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2013-11-15 Eric Botcazou + + * fold-const.c (fold_binary_loc) : Reuse local variable. + 2013-11-15 Uros Bizjak * lto-streamer-in.c (input function): Call cgraph_create_node if diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 5ca76912ca1d..d08d0cdd069c 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),