------- Comment #7 from burnus at gcc dot gnu dot org 2007-06-18 16:38 ------- > $ gfortran -v > Target: i686-pc-linux-gnu > gcc version 4.1.2 (Gentoo 4.1.2)
I can reproduce this on my Pentium M (openSUSE 10.2) with Target: i586-suse-linux gcc version 4.1.2 20061115 (prerelease) (SUSE Linux) and with FX's Target: i386-pc-linux-gnu gcc version 4.3.0 20070618 (experimental) Interestingly, it works on x86_64-unknown-linux-gnu even with -m32. (I somehow fail to run FX's i386 compiler on x86-64.) I think this could be a middle-end or target problem as it is that target dependent. On the other hand, gfortran (and g95) could simply produce a wrong generic code. -- burnus at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu dot | |org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Known to fail| |4.1.2 4.3.0 Last reconfirmed|0000-00-00 00:00:00 |2007-06-18 16:38:39 date| | Summary|Generate wrong optimization |Wrong code with optimization |code on fortran 77 |on i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32391