re PR middle-end/19953 (Special-case real + complex arithmetic operation (-ffast...
authorRichard Henderson <rth@redhat.com>
Thu, 24 Feb 2005 20:00:09 +0000 (12:00 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Thu, 24 Feb 2005 20:00:09 +0000 (12:00 -0800)
commita0d2281e2d912d1e593a7272cfa0c291c1fc81f2
tree79896db4727874e5decda78a3b61216e7fcbce2f
parentae95537a89e5f8d5c57ede74ca84a4a4cf3d96e3
re PR middle-end/19953 (Special-case real + complex arithmetic operation (-ffast-math))

        PR middle-end/19953
        * builtins.c (fold_builtin_complex_mul, fold_builtin_complex_div): New.
        (fold_builtin_1): Call them.
        * fold-const.c (fold_complex_mult_parts): Split out from ...
        (fold_complex_mult): ... here.  Fix typo in both imaginary case.
        (fold_complex_div_parts, fold_complex_div): New.
        (fold): Use them.
        * tree.h (fold_complex_mult_parts, fold_complex_div_parts): Declare.

From-SVN: r95511
gcc/ChangeLog
gcc/builtins.c
gcc/fold-const.c
gcc/testsuite/gcc.dg/tree-ssa/complex-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/complex-2.c [new file with mode: 0644]
gcc/tree.h