From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27365 invoked by alias); 22 Mar 2013 14:16:56 -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 27333 invoked by uid 48); 22 Mar 2013 14:16:48 -0000 From: "Joost.VandeVondele at mat dot ethz.ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/56688] Fortran save statement prevents loop vectorization. Date: Fri, 22 Mar 2013 14:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Joost.VandeVondele at mat dot ethz.ch X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-SW-Source: 2013-03/txt/msg01516.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56688 Joost VandeVondele changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Joost.VandeVondele at mat | |dot ethz.ch --- Comment #3 from Joost VandeVondele 2013-03-22 14:16:47 UTC --- (In reply to comment #1) > because it appears that 'save' makes all variables global ones. But this is maybe a frontend issue ? The visibility of x is local to the this subroutine, but its lifetime extends over the entire run (so different to your variable z in the C testcase).