public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/12705] New: [gfortran] : complex powers
@ 2003-10-21 7:41 jv244 at cam dot ac dot uk
2003-10-21 15:43 ` [Bug fortran/12705] " pinskia at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: jv244 at cam dot ac dot uk @ 2003-10-21 7:41 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12705
Summary: [gfortran] : complex powers
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jv244 at cam dot ac dot uk
CC: gcc-bugs at gcc dot gnu dot org
wrong results with complex powers :
COMPLEX a,b
INTEGER i
a=(0.0,1.0)
i=2
b=a**i
IF (b.NE.-1.0) CALL ABORT()
i=4
b=a**i
IF (b.NE.1.0) CALL ABORT()
END
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/12705] [gfortran] : complex powers
2003-10-21 7:41 [Bug fortran/12705] New: [gfortran] : complex powers jv244 at cam dot ac dot uk
@ 2003-10-21 15:43 ` pinskia at gcc dot gnu dot org
2003-10-21 20:26 ` [Bug middle-end/12705] " pbrook at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-21 15:43 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12705
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |tree-ssa
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/12705] [gfortran] : complex powers
2003-10-21 7:41 [Bug fortran/12705] New: [gfortran] : complex powers jv244 at cam dot ac dot uk
2003-10-21 15:43 ` [Bug fortran/12705] " pinskia at gcc dot gnu dot org
@ 2003-10-21 20:26 ` pbrook at gcc dot gnu dot org
2003-10-23 22:21 ` pinskia at gcc dot gnu dot org
2003-10-30 0:28 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pbrook at gcc dot gnu dot org @ 2003-10-21 20:26 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12705
pbrook at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Component|fortran |middle-end
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-10-21 19:53:32
date| |
------- Additional Comments From pbrook at gcc dot gnu dot org 2003-10-21 19:53 -------
This looks like a bug in the tree->rtl expander, so checged category to
middle-end
The problematic line (from .t05.gimple tree dump) is
pow.3 = pow.3 * val.1;
This gets miscompiled such that the real component of pow.3 is overwritten
before the imaginary component is calculated.
Yes, I know our implementation of ** sucks, but that's a seperate problem.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/12705] [gfortran] : complex powers
2003-10-21 7:41 [Bug fortran/12705] New: [gfortran] : complex powers jv244 at cam dot ac dot uk
2003-10-21 15:43 ` [Bug fortran/12705] " pinskia at gcc dot gnu dot org
2003-10-21 20:26 ` [Bug middle-end/12705] " pbrook at gcc dot gnu dot org
@ 2003-10-23 22:21 ` pinskia at gcc dot gnu dot org
2003-10-30 0:28 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-23 22:21 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12705
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-23 21:59 -------
Fixed on the mainline by:
PR middle-end/12705
* optabs.c (expand_binop): When expanding complex operations
inline, always calculate result into a new temporary register.
Minor code clean-ups.
Will be fixed on the tree-ssa when it gets merged again.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/12705] [gfortran] : complex powers
2003-10-21 7:41 [Bug fortran/12705] New: [gfortran] : complex powers jv244 at cam dot ac dot uk
` (2 preceding siblings ...)
2003-10-23 22:21 ` pinskia at gcc dot gnu dot org
@ 2003-10-30 0:28 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-30 0:28 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12705
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-29 22:55 -------
Closing as the mainline was merged in 2003-10-26 and included the fix.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-10-29 22:55 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-21 7:41 [Bug fortran/12705] New: [gfortran] : complex powers jv244 at cam dot ac dot uk
2003-10-21 15:43 ` [Bug fortran/12705] " pinskia at gcc dot gnu dot org
2003-10-21 20:26 ` [Bug middle-end/12705] " pbrook at gcc dot gnu dot org
2003-10-23 22:21 ` pinskia at gcc dot gnu dot org
2003-10-30 0:28 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).