re PR middle-end/12002 (internal compiler error: in gen_lowpart, at emit-rtl.c:1374)
authorRoger Sayle <roger@eyesopen.com>
Tue, 26 Aug 2003 21:44:46 +0000 (21:44 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Tue, 26 Aug 2003 21:44:46 +0000 (21:44 +0000)
commit00229de405d3ddbe05a4229a4758b67aee1b88b6
treef66d45ff83456aa8be9b704e85862705c14f4a6f
parentb41ead3e3537c589c78911ad0426c22a029cfb46
re PR middle-end/12002 (internal compiler error: in gen_lowpart, at emit-rtl.c:1374)

PR middle-end/12002
* tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
(FLOAT_TYPE_P): Define in terms of these two new macros.
* fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
for complex floating point types.

* g77.f-torture/compile/12002.f: New test case.

From-SVN: r70821
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/g77.f-torture/compile/12002.f [new file with mode: 0644]
gcc/tree.h