From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30115 invoked by alias); 15 Mar 2014 10:53:44 -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 30082 invoked by uid 55); 15 Mar 2014 10:53:40 -0000 From: "janus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/55207] [F08] Variables declared in the main program should implicitly get the SAVE attribute Date: Sat, 15 Mar 2014 10:53: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.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: janus at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: janus at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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/msg01232.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55207 --- Comment #14 from janus at gcc dot gnu.org --- Author: janus Date: Sat Mar 15 10:53:04 2014 New Revision: 208590 URL: http://gcc.gnu.org/viewcvs?rev=208590&root=gcc&view=rev Log: 2014-03-15 Janus Weil PR fortran/55207 * decl.c (match_attr_spec): Variables in the main program implicitly get the SAVE attribute in Fortran 2008. 2014-03-15 Janus Weil PR fortran/55207 * gfortran.dg/assumed_rank_7.f90: Explicitly deallocate variables. * gfortran.dg/c_ptr_tests_16.f90: Put into subroutine. * gfortran.dg/inline_sum_bounds_check_1.f90: Add -Wno-aggressive-loop-optimizations and remove an unused variable. * gfortran.dg/intent_optimize_1.f90: Put into subroutine. * gfortran.dg/pointer_init_9.f90: New. * gfortran.dg/volatile4.f90: Put into subroutine. * gfortran.dg/volatile6.f90: Ditto. Added: trunk/gcc/testsuite/gfortran.dg/pointer_init_9.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/decl.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gfortran.dg/assumed_rank_7.f90 trunk/gcc/testsuite/gfortran.dg/c_ptr_tests_16.f90 trunk/gcc/testsuite/gfortran.dg/inline_sum_bounds_check_1.f90 trunk/gcc/testsuite/gfortran.dg/intent_optimize_1.f90 trunk/gcc/testsuite/gfortran.dg/volatile4.f90 trunk/gcc/testsuite/gfortran.dg/volatile6.f90