aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2013-02-21 22:29:29 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2013-02-21 22:29:29 +0100
commitbe63b77d8b202a77d7699311fa4a9aba4521b425 (patch)
treed1030e594d863fd4319e656fd16f5fbba7cd2f74 /gcc/config.gcc
parentd7fde18c2a76c55f544a2f4afa6ac39c195f0392 (diff)
downloadgcc-be63b77d8b202a77d7699311fa4a9aba4521b425.zip
gcc-be63b77d8b202a77d7699311fa4a9aba4521b425.tar.gz
gcc-be63b77d8b202a77d7699311fa4a9aba4521b425.tar.bz2
re PR middle-end/56420 (Arithmetic error in computation with compile time unsigned __int128 constant)
PR middle-end/56420 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to avoid signed wrapping. (expand_mult): Handle properly multiplication by ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior in the compiler if coeff is HOST_WIDE_INT_MIN. (expand_divmod): Don't make ext_op1 static, change it's type to uhwi. Avoid undefined behavior in -INTVAL (op1). * gcc.dg/torture/pr56420.c: New test. From-SVN: r196215
Diffstat (limited to 'gcc/config.gcc')
0 files changed, 0 insertions, 0 deletions