From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20780 invoked by alias); 24 Mar 2014 20:43:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 20732 invoked by uid 48); 24 Mar 2014 20:43:31 -0000 From: "mikael at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/60543] [4.7/4.8/4.9 Regression] Function with side effect removed by the optimizer. Date: Mon, 24 Mar 2014 20:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.8.1 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mikael at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-03/txt/msg02184.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60543 Mikael Morin changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mikael at gcc dot gnu.org --- Comment #14 from Mikael Morin --- (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'). > > > > 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. > This means you are using an old compiler. Did you install the compiler (i.e. run 'make install')? Do you get gzip'ed modules if you use .../gcc/f951 instead of .../gcc/gfortran?