This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix PR middle-end/26717


Hello!

This patch fixes the failure with -ffast-math, where gcc wants to transform A /
A to 1.0 even for complex A. The patch disables the transformation for complex
operands.

2006-03-23  Uros Bizjak  <uros@kss-loka.si>

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


testsuite/ChangeLog:

2006-03-23  Uros Bizjak  <uros@kss-loka.si>

	PR middle-end/26717
	* gcc.dg/pr26717.c: New test.

Uros.

Attachment: pr26717.diff
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]