This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Is this a known optimisation bug ? (Which has appeared recently...)
- From: Benjamin RÃveillà <benjamin dot reveille at gmail dot com>
- To: fortran at gcc dot gnu dot org
- Date: Fri, 26 Jan 2007 00:05:44 +0100
- Subject: Is this a known optimisation bug ? (Which has appeared recently...)
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:subject:date:user-agent:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=JPIJNECsVekMhRqZ2m4VcIYiJlQ5UN021SerbL6uU1q6OlFf0cibXfnCKDaHmvaWtnI3gn7T8r1EUkgZo5E9WzK/q6dbkILiSka9fz5bdmHZaFIbdD73kuvyOH29w9oW6+mSChyG+5dAJResn2GktWN9ZnDiQS70xjOj1cnJt5g=
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