re PR middle-end/26717 (complex/complex gives a REAL_CST)
authorUros Bizjak <uros@kss-loka.si>
Sat, 25 Mar 2006 17:32:34 +0000 (18:32 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Sat, 25 Mar 2006 17:32:34 +0000 (18:32 +0100)
commit1d8b38a080f6862c5e0e1f407851e9b73c622e33
tree48e974648a8fcb1e216b90855fef2c32b4a4f150
parent75bcbcdb5e3ae1c1695e701ff5517a41b9ae3a14
re PR middle-end/26717 (complex/complex gives a REAL_CST)

PR middle-end/26717
* fold-const.c (fold_binary) [RDIV_EXPR]: Do not optimize A / A
to 1.0 for non-real operands. Implement A / A optimization for
complex operands.

Co-Authored-By: Roger Sayle <roger@eyesopen.com>
From-SVN: r112379
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr26717.c [new file with mode: 0644]