From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D0C0B385782F; Sun, 25 Oct 2020 19:03:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D0C0B385782F From: "rimvydas.jas at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/97571] New: long parsing phase for simple array constructor Date: Sun, 25 Oct 2020 19:03:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rimvydas.jas at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Oct 2020 19:03:22 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97571 Bug ID: 97571 Summary: long parsing phase for simple array constructor Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- gcc version 11.0.0 20201025 (experimental) [master revision d7ddd287c:9f8172cd7:47d13acbda9a5d8eb57ff169ba74857cd54108e4] (GCC) x86_64-unknown-linux=20 $ cat init.f90 subroutine bpr_init implicit none integer :: i real :: tacos2( 0:35250) tacos2 =3D acos( (/ (i, i=3D64000,99250) /) / 100000.0) end subroutine bpr_init $ gfortran -O1 -Wall -Wextra -c init.f90 -ftime-report init.f90:4:24: 4 | real :: tacos2( 0:35250) | 1 Warning: Array 'tacos2' at (1) is larger than limit set by '-fmax-stack-var-size=3D', moved from stack to static storage. This makes t= he procedure unsafe when called recursively, or concurrently from multiple threads. Consider using '-frecursive', or increase the '-fmax-stack-var-siz= e=3D' limit, or change the code to use an ALLOCATABLE array. [-Wsurprising] Time variable usr sys = wall GGC phase parsing :1923.03 (100%) 0.21 (100%)1923.67 (1= 00%) 7500k ( 97%) phase opt and generate : 0.01 ( 0%) 0.00 ( 0%) 0.02 ( = 0%) 69k ( 1%) callgraph functions expansion : 0.01 ( 0%) 0.00 ( 0%) 0.01 ( = 0%) 48k ( 1%) parser (global) :1923.02 (100%) 0.21 (100%)1923.67 (1= 00%) 7500k ( 97%) tree gimplify : 0.00 ( 0%) 0.00 ( 0%) 0.01 ( = 0%) 1752 ( 0%) tree STMT verifier : 0.00 ( 0%) 0.00 ( 0%) 0.01 ( = 0%) 0 ( 0%) varconst : 0.01 ( 0%) 0.00 ( 0%) 0.00 ( = 0%) 0 ( 0%) initialize rtl : 0.01 ( 0%) 0.00 ( 0%) 0.00 ( = 0%) 12k ( 0%) TOTAL :1923.04 0.21 1923.69=20= =20=20=20=20=20=20 7756k Extra diagnostic checks enabled; compiler may run slowly. Configure with --enable-checking=3Drelease to disable checks. Configuring with checking=3Drelease or different -O levels have no impact o= n time taken, previous gfortran 10.2 did not exhibit such long parsing times.=