re PR c/61136 (ice in tree_nop_conversion)
authorRichard Sandiford <rdsandiford@googlemail.com>
Sun, 11 May 2014 20:21:55 +0000 (20:21 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Sun, 11 May 2014 20:21:55 +0000 (20:21 +0000)
commit7588d8aae498ba0a9643858555ac44e97877d5cf
treef88d70058c21ad014fce2e4b84fb2175d6e96fdf
parenta9fe68774e1d00071bb528d40f1bc2caf61c2e39
re PR c/61136 (ice in tree_nop_conversion)

gcc/
PR tree-optimization/61136
* wide-int.h (multiple_of_p): Define a version that doesn't return
the quotient.
* fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
integer_zerop/const_binop pair.
(multiple_of_p): Likewise, converting both operands to widest_int
precision.

gcc/testsuite/
* gcc.dg/torture/pr61136.c: New test.

From-SVN: r210312
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr61136.c [new file with mode: 0644]
gcc/wide-int.h