public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/63577] New: [4.8/4.9/5? Regression]: Huge compile time and memory usage with -O and not -fPIC
@ 2014-10-17 14:59 jfsoden at mpp dot mpg.de
  2014-10-20 13:06 ` [Bug rtl-optimization/63577] " rguenth at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: jfsoden at mpp dot mpg.de @ 2014-10-17 14:59 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 63577
           Summary: [4.8/4.9/5? Regression]: Huge compile time and memory
                    usage with -O and not -fPIC
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jfsoden at mpp dot mpg.de

Created attachment 33749
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33749&action=edit
Test program.

The attached Fortran programs compiles slowly and needs lots of memory
if compiled with basic optimization (-O) but without -fPIC.
With -fPIC, memory usage and compile time are much shorter.


$ gfortran abbrevd408h0.f90 -c -O  
needs 45s and 630MB RAM

but

$ gfortran abbrevd408h0.f90 -c -O -fPIC
needs only 6s and 105MB RAM.

$ gfortran abbrevd408h0.f90 -c
works also quickly.

The attached file is shortened. On the full file, the effect is more distinct
(with gfortran 4.8.1: >8GB RAM usage, several minutes).

With gfortran 4.7, the issue does not appear.

Used version:
GNU Fortran (Debian 4.9.1-17) 4.9.1     [~ SVN r216240]

Also
GNU Fortran (SUSE Linux) 4.8.1 20130909 [gcc-4_8-branch revision 202388]
GNU Fortran (SUSE Linux) 4.8.3 20140627 [gcc-4_8-branch revision 212064] 
are affected.


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

end of thread, other threads:[~2015-01-31 20:19 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-17 14:59 [Bug fortran/63577] New: [4.8/4.9/5? Regression]: Huge compile time and memory usage with -O and not -fPIC jfsoden at mpp dot mpg.de
2014-10-20 13:06 ` [Bug rtl-optimization/63577] " rguenth at gcc dot gnu.org
2014-10-20 13:08 ` [Bug rtl-optimization/63577] [4.8/4.9/5 " rguenth at gcc dot gnu.org
2014-10-20 18:07 ` segher at gcc dot gnu.org
2014-11-24 13:37 ` rguenth at gcc dot gnu.org
2014-12-19 13:35 ` jakub at gcc dot gnu.org
2015-01-12 14:42 ` jakub at gcc dot gnu.org
2015-01-28  2:46 ` segher at gcc dot gnu.org
2015-01-28  7:42 ` jakub at gcc dot gnu.org
2015-01-28 20:30 ` segher at gcc dot gnu.org
2015-01-28 20:41 ` jakub at gcc dot gnu.org
2015-01-31 20:19 ` segher 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).