aboutsummaryrefslogtreecommitdiff
path: root/gcc/coverage.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@linaro.org>2017-11-22 13:58:57 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2017-11-22 13:58:57 +0000
commit2131f7f5b7fafad66c0ae3fcf91d531fc6f9ceb1 (patch)
treedde1145642e089c705eba8a6de288f81437c2a6a /gcc/coverage.c
parenta76ef9c5a8447bf3e90ed832ef1286cda205e115 (diff)
downloadgcc-2131f7f5b7fafad66c0ae3fcf91d531fc6f9ceb1.zip
gcc-2131f7f5b7fafad66c0ae3fcf91d531fc6f9ceb1.tar.gz
gcc-2131f7f5b7fafad66c0ae3fcf91d531fc6f9ceb1.tar.bz2
PR82547: Undetected overflow for UNSIGNED wide_ints
wi::add_large and wi::sub_large weren't setting the overflow bit correctly for unsigned operations if the result needed fewer HWIs than the precision. 2017-11-22 Richard Sandiford <richard.sandiford@linaro.org> gcc/ PR middle-end/82547 * wide-int.cc (wi::add_large, wi::sub_large): Fix overflow detection for unsigned values with fewer HWIs than the precision. (test_overflow): New function. (wide_int_cc_tests): Call it. From-SVN: r255059
Diffstat (limited to 'gcc/coverage.c')
0 files changed, 0 insertions, 0 deletions