This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/19609] [4.0 Regression] real and imaginary part interchanged when flags_complex_divide_method=1
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Jan 2005 23:33:23 -0000
- Subject: [Bug middle-end/19609] [4.0 Regression] real and imaginary part interchanged when flags_complex_divide_method=1
- References: <20050124195729.19609.Thomas.Koenig@online.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pcarlini at suse dot de 2005-01-24 23:33 -------
> Yes, I see that. My eyes crossed while transcribing the algorithm to trees,
> and I failed to notice that a computation is (b - (a * ratio)) in one branch
> and ((a * ratio) - b) in the other. And so incorrectly believed that the
> branches could be rewritten to share code.
Indeed, I can imagine: unfortunately, a few more lines are apparently needed.
Anyway, a lot of people will appreciate this work!
P.S. Beware that both the real and the imaginary part are different in the
two branches ;) The roles of a and b are swapped in both cases.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19609