[Bug fortran/60543] [4.7/4.8/4.9 Regression] Function with side effect removed by the optimizer.
anlauf at gmx dot de
gcc-bugzilla@gcc.gnu.org
Mon Mar 24 21:49:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60543
--- Comment #16 from Harald Anlauf <anlauf at gmx dot de> ---
(In reply to Sarantis Pantazis from comment #13)
> > 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').
I think that aliases in a Makefile are a bad idea. You need to make sure
that the aliases are exported from the invoking shell.
On my system I get:
% alias gfc
alias gfc='gfortran'
% cat Makefile
SHELL = /bin/bash
aliastest:
echo "Running make: alias:"; alias
% make aliastest
echo "Running make: alias:"; alias
Running make: alias:
So no aliases are set! Try "man bash" and search for "expand_aliases".
I use a symbolic link gfc-trunk (you might prefer gfortran-latest)
to the installed binary and use this in the makefile.
More information about the Gcc-bugs
mailing list