public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/14540] New: [gfortran]  Intrinsic CLOG returns wrong result
@ 2004-03-12  0:01 bdavis9659 at comcast dot net
  2004-03-12  4:50 ` [Bug fortran/14540] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: bdavis9659 at comcast dot net @ 2004-03-12  0:01 UTC (permalink / raw)
  To: gcc-bugs

small program to demonstrate:

        COMPLEX AVC
        AVC = CLOG( (-10.0, -10.0) )
        PRINT*,AVC
        END

from g77:

$ g77 y.f
$ ./a.out
 (2.64915872,-2.3561945)

from gfortran:

$ gfortran y.f
$ ./a.out
(   2.649159    ,  0.7853982    )
$ gfortran --version
GNU Fortran 95 (GCC 3.5-tree-ssa 20040311 (merged 20040307))



This makes it a front-end issue, I think:

MAIN__ ()
{
  complex4 avc;
 
  avc = __complex__ (2.649158954620361328125e+0, 7.85398185253143310546875e-1);
  _gfortran_filename = "y.f";
  _gfortran_line = 3;
  _gfortran_ioparm.unit = 6;
  _gfortran_ioparm.list_format = 1;
  _gfortran_st_write ();
  _gfortran_transfer_complex (&avc, 4);
  _gfortran_st_write_done ();;
}

-- 
           Summary: [gfortran]  Intrinsic CLOG returns wrong result
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bdavis9659 at comcast dot net
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14540


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/14540] [gfortran]  Intrinsic CLOG returns wrong result
  2004-03-12  0:01 [Bug fortran/14540] New: [gfortran] Intrinsic CLOG returns wrong result bdavis9659 at comcast dot net
@ 2004-03-12  4:50 ` pinskia at gcc dot gnu dot org
  2004-04-05  0:16 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-12  4:50 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-12 04:50 -------
Confirmed on 20040306.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |wrong-code
      Known to fail|                            |tree-ssa
   Last reconfirmed|0000-00-00 00:00:00         |2004-03-12 04:50:47
               date|                            |
   Target Milestone|---                         |tree-ssa


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14540


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/14540] [gfortran]  Intrinsic CLOG returns wrong result
  2004-03-12  0:01 [Bug fortran/14540] New: [gfortran] Intrinsic CLOG returns wrong result bdavis9659 at comcast dot net
  2004-03-12  4:50 ` [Bug fortran/14540] " pinskia at gcc dot gnu dot org
@ 2004-04-05  0:16 ` pinskia at gcc dot gnu dot org
  2004-04-18 17:47 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-05  0:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-05 00:16 -------
Related to bug 14817.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14540


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/14540] [gfortran]  Intrinsic CLOG returns wrong result
  2004-03-12  0:01 [Bug fortran/14540] New: [gfortran] Intrinsic CLOG returns wrong result bdavis9659 at comcast dot net
  2004-03-12  4:50 ` [Bug fortran/14540] " pinskia at gcc dot gnu dot org
  2004-04-05  0:16 ` pinskia at gcc dot gnu dot org
@ 2004-04-18 17:47 ` cvs-commit at gcc dot gnu dot org
  2004-04-18 18:08 ` pinskia at gcc dot gnu dot org
  2004-04-18 18:13 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-04-18 17:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-04-18 17:29 -------
Subject: Bug 14540

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	tree-ssa-20020619-branch
Changes by:	pbrook@gcc.gnu.org	2004-04-18 17:29:26

Modified files:
	gcc/fortran    : ChangeLog arith.c arith.h simplify.c 
	gcc/testsuite  : ChangeLog.tree-ssa 
	gcc/testsuite/gfortran.fortran-torture/execute: math.f90 

Log message:
	PR fortran/14921
	PR fortran/14540
	* arith.c (arctangent2): New function.
	* arith.h (arctangent2): Add function prototype.
	* simplify.c (gfc_simplify_atan2): Use it.
	(gfc_simplify_log): Use it.
	testsuite
	PR fortran/14921
	PR fortran/14540
	* gfortran.fortran-torture/execute/math.f90: Add atan2 and clog
	simplify test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.139&r2=1.1.2.140
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/arith.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.4&r2=1.1.2.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/arith.h.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.2&r2=1.1.2.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/simplify.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.5&r2=1.1.2.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.tree-ssa.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.223&r2=1.1.2.224
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.fortran-torture/execute/math.f90.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.1&r2=1.1.2.2



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14540


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/14540] [gfortran]  Intrinsic CLOG returns wrong result
  2004-03-12  0:01 [Bug fortran/14540] New: [gfortran] Intrinsic CLOG returns wrong result bdavis9659 at comcast dot net
                   ` (2 preceding siblings ...)
  2004-04-18 17:47 ` cvs-commit at gcc dot gnu dot org
@ 2004-04-18 18:08 ` pinskia at gcc dot gnu dot org
  2004-04-18 18:13 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-18 18:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-18 18:02 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14540


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/14540] [gfortran]  Intrinsic CLOG returns wrong result
  2004-03-12  0:01 [Bug fortran/14540] New: [gfortran] Intrinsic CLOG returns wrong result bdavis9659 at comcast dot net
                   ` (3 preceding siblings ...)
  2004-04-18 18:08 ` pinskia at gcc dot gnu dot org
@ 2004-04-18 18:13 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-18 18:13 UTC (permalink / raw)
  To: gcc-bugs



-- 
Bug 14540 depends on bug 14921, which changed state.

Bug 14921 Summary: [gfortran] atan2 intrinsic function result error
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14921

           What    |Old Value                   |New Value
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14540


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-04-18 18:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-12  0:01 [Bug fortran/14540] New: [gfortran] Intrinsic CLOG returns wrong result bdavis9659 at comcast dot net
2004-03-12  4:50 ` [Bug fortran/14540] " pinskia at gcc dot gnu dot org
2004-04-05  0:16 ` pinskia at gcc dot gnu dot org
2004-04-18 17:47 ` cvs-commit at gcc dot gnu dot org
2004-04-18 18:08 ` pinskia at gcc dot gnu dot org
2004-04-18 18:13 ` 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).