diff options
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/fold-const.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 61b793b..d5e438c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2017-03-02 Richard Biener <rguenther@suse.de> + * fold-const.c (const_binop): Use ulow () instead of elt (0). + +2017-03-02 Richard Biener <rguenther@suse.de> + PR tree-optimization/79345 PR c++/42000 * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit 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; |