I found that my output files were missing spaces here and there. Here is a
simple test program that shows the problem. Note that the blank line between the
lines "eq.3, central difference method" and "end" is missing the 5 spaces.


[dranta:~/tests/gfortran-D] dir% gfortran -o write02 write02.f
[dranta:~/tests/gfortran-D] dir% write02 > out1
[dranta:~/tests/gfortran-D] dir% cat out1

        eq.1, wilsons theta method                          
        eq.2, newmarks method                               
        eq.3, central difference method                     

      end

[dranta:~/tests/gfortran-D] dir% dump out1

   File name: out1   Block number: 0   Byte number: 0

0000  0a 20 20 20 20 20 20 20  20 65 71 2e 31 2c 20 77  .         eq.1, w
0010  69 6c 73 6f 6e 73 20 74  68 65 74 61 20 6d 65 74  ilsons t heta met
0020  68 6f 64 20 20 20 20 20  20 20 20 20 20 20 20 20  hod              
0030  20 20 20 20 20 20 20 20  20 20 20 20 20 0a 20 20                .  
0040  20 20 20 20 20 20 65 71  2e 32 2c 20 6e 65 77 6d        eq .2, newm
0050  61 72 6b 73 20 6d 65 74  68 6f 64 20 20 20 20 20  arks met hod     
0060  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20                   
0070  20 20 20 20 20 20 20 20  20 20 0a 20 20 20 20 20             .     
0080  20 20 20 65 71 2e 33 2c  20 63 65 6e 74 72 61 6c     eq.3,  central
0090  20 64 69 66 66 65 72 65  6e 63 65 20 6d 65 74 68   differe nce meth
00a0  6f 64 20 20 20 20 20 20  20 20 20 20 20 20 20 20  od               
00b0  20 20 20 20 20 20 20 0a  0a 20 20 20 20 20 20 65         . .      e
00c0  6e 64 0a 00 00 00 00 00  00 00 00 00 00 00 00 00  nd. 


[dranta:~/tests/gfortran-D] dir% cat write02.f
      program main
       write (6,2045)
       write (6,*)'     end'
      stop
 
   
 2045 format (/5x,
     255h   eq.1, wilsons theta method                          ,/,5x,
     355h   eq.2, newmarks method                               ,/,5x,
     455h   eq.3, central difference method                     ,/,5x)
      end

-- 
           Summary: Spaces missing at end of line
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dir at lanl dot gov
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: powerpc-apple-darwin7.9.0


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

Reply via email to