public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/15203] New: D FORMAT SPECIFIER
@ 2004-04-29 14:41 akemball at netscape dot net
  2004-04-29 17:02 ` [Bug libf2c/15203] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: akemball at netscape dot net @ 2004-04-29 14:41 UTC (permalink / raw)
  To: gcc-bugs

g77 D FORMAT SPECIFIER
----------------------

Summary: g77 uses exponent letter 'E' instead of 'D' for the
         output of the Dw.d FORMAT specifier.

g77 version
-----------
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

System
------
Linux 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux

Compiler command line
---------------------
g77 tst.f

Compiler output
---------------
No warnings

Source file
-----------

      PROGRAM TST
C
      DOUBLE PRECISION A
C
      A = 1.2345678987654321D6
C
      WRITE (6,6000) A
 6000 FORMAT (D25.17)
C
      END

Output
------
$ a.out
0.12345678987654322E+07

Pre-processed file
------------------
        .file   "tst.f"
        .data
        .align 4
        .type   __g77_cilist_0.1,@object
        .size   __g77_cilist_0.1,20
__g77_cilist_0.1:
        .long   0
        .long   6
        .long   0
        .long   __g77_format_6000.0
        .long   0
        .type   __g77_format_6000.0,@object
        .size   __g77_format_6000.0,8
__g77_format_6000.0:
        .ascii  "(D25.17)"
        .section        .rodata
.LC1:
        .align 4
.LC0:
        .long   1
        .text
.globl MAIN__
        .type   MAIN__,@function
MAIN__:
        pushl   %ebp
        movl    %esp, %ebp
        subl    $8, %esp
        movl    $-434799158, -8(%ebp)
        movl    $1093850759, -4(%ebp)
        subl    $12, %esp
        pushl   $__g77_cilist_0.1
        call    s_wsfe
        addl    $16, %esp
        subl    $4, %esp
        pushl   $8
        leal    -8(%ebp), %eax
        pushl   %eax
        pushl   $.LC0
        call    do_fio
        addl    $16, %esp
        call    e_wsfe
        subl    $8, %esp
        pushl   $0
        pushl   $.LC1
        call    s_stop
.Lfe1:
        .size   MAIN__,.Lfe1-MAIN__
        .ident  "GCC: (GNU) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)"

-- 
           Summary: D FORMAT SPECIFIER
           Product: gcc
           Version: 3.2.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: akemball at netscape dot net
                CC: akemball at netscape dot net,gcc-bugs at gcc dot gnu dot
                    org


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


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

* [Bug libf2c/15203] D FORMAT SPECIFIER
  2004-04-29 14:41 [Bug fortran/15203] New: D FORMAT SPECIFIER akemball at netscape dot net
@ 2004-04-29 17:02 ` pinskia at gcc dot gnu dot org
  2004-04-29 17:18 ` pinskia 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 @ 2004-04-29 17:02 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-29 14:48 -------
Confirmed but already fixed in libgfortran for gfortran (which is a fortran 95 compiler) and the tree-ssa 
so ...

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|fortran                     |libf2c
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-04-29 14:48:01
               date|                            |
   Target Milestone|---                         |tree-ssa


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


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

* [Bug libf2c/15203] D FORMAT SPECIFIER
  2004-04-29 14:41 [Bug fortran/15203] New: D FORMAT SPECIFIER akemball at netscape dot net
  2004-04-29 17:02 ` [Bug libf2c/15203] " pinskia at gcc dot gnu dot org
@ 2004-04-29 17:18 ` pinskia at gcc dot gnu dot org
  2004-04-29 20:53 ` bdavis9659 at comcast dot net
  2004-05-13 21:50 ` [Bug libfortran/15203] " pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-29 17:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-29 14:48 -------
Suspending as fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |SUSPENDED


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


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

* [Bug libf2c/15203] D FORMAT SPECIFIER
  2004-04-29 14:41 [Bug fortran/15203] New: D FORMAT SPECIFIER akemball at netscape dot net
  2004-04-29 17:02 ` [Bug libf2c/15203] " pinskia at gcc dot gnu dot org
  2004-04-29 17:18 ` pinskia at gcc dot gnu dot org
@ 2004-04-29 20:53 ` bdavis9659 at comcast dot net
  2004-05-13 21:50 ` [Bug libfortran/15203] " pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: bdavis9659 at comcast dot net @ 2004-04-29 20:53 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bdavis9659 at comcast dot net  2004-04-29 20:28 -------
The F77 standard (see 13.5.9.2.2) allows either a D or an E for output with the
D edit descriptor.

So, both gfortran and g77/f2c are correct.

--bud davis

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org


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


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

* [Bug libfortran/15203] D FORMAT SPECIFIER
  2004-04-29 14:41 [Bug fortran/15203] New: D FORMAT SPECIFIER akemball at netscape dot net
                   ` (2 preceding siblings ...)
  2004-04-29 20:53 ` bdavis9659 at comcast dot net
@ 2004-05-13 21:50 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-13 21:50 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-13 11:51 -------
Fixed for 3.5.0 by the merge of the tree-ssa and gfortran.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|SUSPENDED                   |RESOLVED
          Component|libf2c                      |libfortran
         Resolution|                            |FIXED
   Target Milestone|tree-ssa                    |3.5.0


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


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

end of thread, other threads:[~2004-05-13 11:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-29 14:41 [Bug fortran/15203] New: D FORMAT SPECIFIER akemball at netscape dot net
2004-04-29 17:02 ` [Bug libf2c/15203] " pinskia at gcc dot gnu dot org
2004-04-29 17:18 ` pinskia at gcc dot gnu dot org
2004-04-29 20:53 ` bdavis9659 at comcast dot net
2004-05-13 21:50 ` [Bug libfortran/15203] " 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).