aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2017-03-02 14:38:47 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2017-03-02 14:38:47 +0000
commit35a4e4ed81d9aae4bbd29cf24e389269d08f1fc2 (patch)
tree7d24690af35fc1df7ed2641c5b390a45302d5012 /gcc/fold-const.c
parente80facb4afaaa4d42b17f6970e9738f7c293f522 (diff)
downloadgcc-35a4e4ed81d9aae4bbd29cf24e389269d08f1fc2.zip
gcc-35a4e4ed81d9aae4bbd29cf24e389269d08f1fc2.tar.gz
gcc-35a4e4ed81d9aae4bbd29cf24e389269d08f1fc2.tar.bz2
fold-const.c (const_binop): Use ulow () instead of elt (0).
2017-03-02 Richard Biener <rguenther@suse.de> * fold-const.c (const_binop): Use ulow () instead of elt (0). From-SVN: r245841
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r--gcc/fold-const.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index e64fa64..12445aa 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -1249,7 +1249,7 @@ const_binop (enum tree_code code, tree arg1, tree arg2)
return NULL_TREE;
wide_int w2 = arg2;
f2.data.high = w2.elt (1);
- f2.data.low = w2.elt (0);
+ f2.data.low = w2.ulow ();
f2.mode = SImode;
}
break;