This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

Is this a known optimisation bug ? (Which has appeared recently...)


Hello all,

Consider the following reduced code:

 >> cat bugOpti.f90
program hcad_init
   implicit none
   real(kind(0.d0)), dimension(2) :: h_user,h_oil
   h_user(:)=1.d0
   if (minval(h_user(:)) > 0.0d0) then
      h_oil(:) = h_user(:)
   end if
end program hcad_init

compiles fine with
>> gfortran-cvs bugOpti.f90
and 
>> gfortran-cvs -O0 bugOpti.f90

However it fails to compile with
>> gfortran-cvs -O[s123] bugOpti.f90
bugOpti.f90: In function 'MAIN__':
bugOpti.f90:6: erreur interne du compilateur: dans operand_equal_p, Ã 
fold-const.c:2540
Veuillez soumettre un rapport complet d'anomalies,
avec le source prÃ-traità si nÃcessaire.
Consultez <URL:http://gcc.gnu.org/bugs.html> pour plus de dÃtail.


I must confess, I looked at fold-const.c:2540 but did not see anything weird 
and did not dig deeper...

 >> gfortran-cvs -v
Utilisation des specs internes.
Target: i686-pc-linux-gnu
Configurà 
avec: ../gcc/configure --prefix=/usr/local/temp_gfortran/irun --host=i686-pc-linux-gnu --enable-languages=c,fortran,c++ --program-suffix=-cvs :
ModÃle de thread: posix
version gcc 4.3.0 20070125 (experimental)


Thanks for your answers

 Ben


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