Skip to content
Snippets Groups Projects
Commit 00229de4 authored by Roger Sayle's avatar Roger Sayle Committed by Roger Sayle
Browse files

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
parent b41ead3e
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment