public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug fortran/43210] New: Initializer of huge static arrays should be improved @ 2010-02-28 13:58 burnus at gcc dot gnu dot org 2010-02-28 15:03 ` [Bug fortran/43210] " burnus at gcc dot gnu dot org ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: burnus at gcc dot gnu dot org @ 2010-02-28 13:58 UTC (permalink / raw) To: gcc-bugs Follow up to PR 43205 subroutine test() integer, SAVE :: hugeArray(1000,1000) = 42 generates a huge initializer of the type: static integer(kind=4) hugeArray = {42, 42, 42, ...., 42}; It would be possible to reduce the compile time and object size by initializing it a run time: static integer(kind=4) hugeArray; static logical initialized = false if (!initialized) { initialized = true for(i=0, i < size; i++) hugeArray = 42; } The question is only how big the array should be. I think one common case of this could also be -finit-integer=42. -- Summary: Initializer of huge static arrays should be improved Product: gcc Version: 4.5.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43210 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/43210] Initializer of huge static arrays should be improved 2010-02-28 13:58 [Bug fortran/43210] New: Initializer of huge static arrays should be improved burnus at gcc dot gnu dot org @ 2010-02-28 15:03 ` burnus at gcc dot gnu dot org 2010-03-20 20:20 ` jvdelisle at gcc dot gnu dot org 2010-03-27 18:47 ` pault at gcc dot gnu dot org 2 siblings, 0 replies; 4+ messages in thread From: burnus at gcc dot gnu dot org @ 2010-02-28 15:03 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from burnus at gcc dot gnu dot org 2010-02-28 15:02 ------- A bonus: There should be only a single "logical initialized" variable for all initializers. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43210 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/43210] Initializer of huge static arrays should be improved 2010-02-28 13:58 [Bug fortran/43210] New: Initializer of huge static arrays should be improved burnus at gcc dot gnu dot org 2010-02-28 15:03 ` [Bug fortran/43210] " burnus at gcc dot gnu dot org @ 2010-03-20 20:20 ` jvdelisle at gcc dot gnu dot org 2010-03-27 18:47 ` pault at gcc dot gnu dot org 2 siblings, 0 replies; 4+ messages in thread From: jvdelisle at gcc dot gnu dot org @ 2010-03-20 20:20 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from jvdelisle at gcc dot gnu dot org 2010-03-20 20:19 ------- See fortran-exp branch where we are working these issues. Once the splay-tree structure is in place we can then focus on setting a limit and not "simplify" the constructor. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43210 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/43210] Initializer of huge static arrays should be improved 2010-02-28 13:58 [Bug fortran/43210] New: Initializer of huge static arrays should be improved burnus at gcc dot gnu dot org 2010-02-28 15:03 ` [Bug fortran/43210] " burnus at gcc dot gnu dot org 2010-03-20 20:20 ` jvdelisle at gcc dot gnu dot org @ 2010-03-27 18:47 ` pault at gcc dot gnu dot org 2 siblings, 0 replies; 4+ messages in thread From: pault at gcc dot gnu dot org @ 2010-03-27 18:47 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from pault at gcc dot gnu dot org 2010-03-27 18:47 ------- Confirmed Paul -- pault at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2010-03-27 18:47:20 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43210 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-03-27 18:47 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2010-02-28 13:58 [Bug fortran/43210] New: Initializer of huge static arrays should be improved burnus at gcc dot gnu dot org 2010-02-28 15:03 ` [Bug fortran/43210] " burnus at gcc dot gnu dot org 2010-03-20 20:20 ` jvdelisle at gcc dot gnu dot org 2010-03-27 18:47 ` pault at gcc dot gnu dot 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).