This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR middle-end/12002: Don't fold z+z as z*2.0 for complexz
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 25 Aug 2003 17:43:51 +0200
- Subject: Re: [PATCH] PR middle-end/12002: Don't fold z+z as z*2.0 for complexz
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <Pine.LNX.4.44.0308241515470.25285-100000@www.eyesopen.com>
Roger Sayle wrote:
2003-08-24 Roger Sayle <roger@eyesopen.com>
PR middle-end/12002
* fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
for complex floating point types.
* g77.f-torture/compile/20030824-1.f: New test case.
Thanks for fixing this (self-inflicted :-) problem.
My preference for the name of the test-case is 12002.f, i.e., to name it
after the bug it solves.
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://gcc-g95.sourceforge.net/ (under construction)