This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Segmentation fault for the following Fortran program at -O3 on x86-64.


Sebastian Pop wrote:

On Thu, Aug 5, 2010 at 15:17, Sebastian Pop <sebpop@gmail.com> wrote:

On Thu, Aug 5, 2010 at 15:07, Sebastian Pop <sebpop@gmail.com> wrote:

I'm delta reducing this.

Reduced it looks like this, and it seems like the bug is in the loop
distribution
for memset zero changes.

     parameter(numlev=3,numoblev=1000)
     integer i_otyp(numoblev,numlev), i_styp(numoblev,numlev)
     logical l_numob(numoblev,numlev)
     do ixe=1,numoblev
        do iye=1,numlev
           i_otyp(ixe,iye)=0
           i_styp(ixe,iye)=0
           l_numob(ixe,iye)=.false.
        enddo
     enddo
     do i=1,m
        do j=1,n
           if (l_numob(i,j)) then
              write(20,'(7I4,F12.2,4F16.10)') i_otyp(i,j),i_styp(i,j)
           endif
        enddo
     enddo
     end


This is now http://gcc.gnu.org/PR45199

Thanks for picking up the ball where I dropped it. I was so tired yesterday that I couldn't wrap my head around reducing the example anymore.


Cheers,

--
Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
At home: http://moene.org/~toon/; weather: http://moene.org/~hirlam/
Progress of GNU Fortran: http://gcc.gnu.org/gcc-4.5/changes.html#Fortran


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]