re PR tree-optimization/41987 (expected class ‘constant’, have ‘binary’ (rdiv_expr...
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Tue, 10 Nov 2009 16:16:57 +0000 (16:16 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Tue, 10 Nov 2009 16:16:57 +0000 (16:16 +0000)
commit08d198890e548cc9d551d4dfdfef257893a21ed3
tree1e6767691811d80f2fa58e920b8a005d425ec3a7
parent2c5721d9f36a114809e296686ff39b1324b0cc5b
re PR tree-optimization/41987 (expected class ‘constant’, have ‘binary’ (rdiv_expr) in build_complex, at tree.c:1485)

PR tree-optimization/41987
* fold-const.c (const_binop): Avoid using fold_buildN().

testsuite:
* gcc.c-torture/compile/pr41987.c: New.

From-SVN: r154065
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr41987.c [new file with mode: 0644]