public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/97571] New: long parsing phase for simple array constructor
@ 2020-10-25 19:03 rimvydas.jas at gmail dot com
  2020-10-26 14:46 ` [Bug fortran/97571] " anlauf at gcc dot gnu.org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: rimvydas.jas at gmail dot com @ 2020-10-25 19:03 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97571

            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 

$ cat init.f90
subroutine bpr_init
implicit none
integer :: i
real :: tacos2( 0:35250)
tacos2 = acos( (/ (i, i=64000,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=', moved from stack to static storage. This makes the
procedure unsafe when called recursively, or concurrently from multiple
threads. Consider using '-frecursive', or increase the '-fmax-stack-var-size='
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 (100%)
 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 (100%)
 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       
 7756k
Extra diagnostic checks enabled; compiler may run slowly.
Configure with --enable-checking=release to disable checks.

Configuring with checking=release or different -O levels have no impact on time
taken, previous gfortran 10.2 did not exhibit such long parsing times.

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2021-08-30 11:38 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-25 19:03 [Bug fortran/97571] New: long parsing phase for simple array constructor rimvydas.jas at gmail dot com
2020-10-26 14:46 ` [Bug fortran/97571] " anlauf at gcc dot gnu.org
2020-12-02 20:51 ` dominiq at lps dot ens.fr
2020-12-02 21:19 ` anlauf at gcc dot gnu.org
2021-04-23 18:26 ` dominiq at lps dot ens.fr
2021-04-23 19:28 ` molah at ucar dot edu
2021-04-23 20:34 ` anlauf at gcc dot gnu.org
2021-04-23 22:31 ` kargl at gcc dot gnu.org
2021-04-24  0:43 ` jvdelisle at gcc dot gnu.org
2021-04-27 18:03 ` molah at ucar dot edu
2021-04-27 21:29 ` sgk at troutmask dot apl.washington.edu
2021-04-27 22:26 ` molah at ucar dot edu
2021-04-28  9:26 ` anlauf at gcc dot gnu.org
2021-08-30 10:37 ` rimvydas.jas at gmail dot com
2021-08-30 11:38 ` anlauf at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).