diff options
author | Jakub Jelinek <jakub@redhat.com> | 2020-01-13 14:14:57 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2020-01-13 14:14:57 +0100 |
commit | eb7c7c524556df5364f03adc20f6a9db20858484 (patch) | |
tree | 9be821784188bcc32c35670baf5e6cc8af356fe7 /gcc/tree-ssa-forwprop.c | |
parent | 67e6357041db4186f994489810191259421576de (diff) | |
download | gcc-eb7c7c524556df5364f03adc20f6a9db20858484.zip gcc-eb7c7c524556df5364f03adc20f6a9db20858484.tar.gz gcc-eb7c7c524556df5364f03adc20f6a9db20858484.tar.bz2 |
tree-opt: Fix bootstrap failure in tree-ssa-forwprop.c some more PR90838
2020-01-13 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/90838
* tree-ssa-forwprop.c (simplify_count_trailing_zeroes): Use
SCALAR_INT_TYPE_MODE directly in CTZ_DEFINED_VALUE_AT_ZERO macro
argument rather than to initialize temporary for targets that
don't use the mode argument at all. Initialize ctzval to avoid
warning at -O0.
Diffstat (limited to 'gcc/tree-ssa-forwprop.c')
-rw-r--r-- | gcc/tree-ssa-forwprop.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-ssa-forwprop.c b/gcc/tree-ssa-forwprop.c index aac31d0..56c470f 100644 --- a/gcc/tree-ssa-forwprop.c +++ b/gcc/tree-ssa-forwprop.c @@ -1920,10 +1920,10 @@ simplify_count_trailing_zeroes (gimple_stmt_iterator *gsi) res_ops[1], res_ops[2], zero_val)) { tree type = TREE_TYPE (res_ops[0]); - HOST_WIDE_INT ctzval; + HOST_WIDE_INT ctzval = 0; HOST_WIDE_INT type_size = tree_to_shwi (TYPE_SIZE (type)); - scalar_int_mode mode = SCALAR_INT_TYPE_MODE (type); - bool zero_ok = CTZ_DEFINED_VALUE_AT_ZERO (mode, ctzval) == 2; + bool zero_ok + = CTZ_DEFINED_VALUE_AT_ZERO (SCALAR_INT_TYPE_MODE (type), ctzval) == 2; /* Skip if there is no value defined at zero, or if we can't easily return the correct value for zero. */ |