From 8ae9ab2b11d25d6ae99af9b1abfd56db9d9948ea Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 28 Oct 2014 14:51:28 +0100 Subject: [PATCH] tree-ssa-math-opts.c (find_bswap_or_nop_1): Use uint64_t type for the left shift in CASE_CONVERT case. * tree-ssa-math-opts.c (find_bswap_or_nop_1): Use uint64_t type for the left shift in CASE_CONVERT case. From-SVN: r216793 --- gcc/ChangeLog | 5 +++++ gcc/tree-ssa-math-opts.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4104d8da5cd..f57bfd8a96e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-10-28 Jakub Jelinek + + * tree-ssa-math-opts.c (find_bswap_or_nop_1): Use uint64_t + type for the left shift in CASE_CONVERT case. + 2014-10-28 Max Ostapenko * asan.h (asan_intercepted_p): New function. diff --git a/gcc/tree-ssa-math-opts.c b/gcc/tree-ssa-math-opts.c index 495a9fdb24d..e0f29247cdd 100644 --- a/gcc/tree-ssa-math-opts.c +++ b/gcc/tree-ssa-math-opts.c @@ -1926,7 +1926,7 @@ find_bswap_or_nop_1 (gimple stmt, struct symbolic_number *n, int limit) if (!TYPE_UNSIGNED (n->type) && type_size > old_type_size && HEAD_MARKER (n->n, old_type_size)) for (i = 0; i < type_size - old_type_size; i++) - n->n |= MARKER_BYTE_UNKNOWN + n->n |= (uint64_t) MARKER_BYTE_UNKNOWN << ((type_size - 1 - i) * BITS_PER_MARKER); if (type_size < 64 / BITS_PER_MARKER) -- 2.30.2