[Bug fortran/60543] [4.7/4.8/4.9 Regression] Function with side effect removed by the optimizer.
sarantis.pantazis at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Mar 24 20:35:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60543
--- Comment #13 from Sarantis Pantazis <sarantis.pantazis at gmail dot com> ---
> Did you update the compiler name in your makefile?
I have left the line COMPILER=gfortran at the top as it is and I have defined
an alias in my ~/.bashrc for gfortran pointing to the newly installed location
(alias gfortran='$HOME/latestGcc/gcc-build/gcc/gfortran').
> cp MOD/generalfunctions.mod generalFunctions.mod.gz
> gunzip generalFunctions.mod.gz
I get "gzip: generalFunctions.mod.gz: not in gzip format". But anyway, the mod
file is readable so I can skip to the third line.
> grep PURE generalFunctions.mod
UNKNOWN-INTENT MODULE-PROC DECL UNKNOWN 0 0 SUBROUTINE IMPLICIT_PURE) (
MODULE-PROC DECL UNKNOWN 0 0 FUNCTION IMPLICIT_PURE) (REAL 8 0 0 0 REAL
So, I still get IMPLICIT_PURE. And when I run it I still get the infinite loop
as well, so I guess I missed something during the installation?
More information about the Gcc-bugs
mailing list