public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/28974]  New: Extremely slow compilation of enumerated DATA statements.
@ 2006-09-07 14:59 franke dot daniel at gmail dot com
  2006-09-07 17:36 ` [Bug fortran/28974] " steven at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: franke dot daniel at gmail dot com @ 2006-09-07 14:59 UTC (permalink / raw)
  To: gcc-bugs

Compilation of enumerated DATA statements is extremely slow. 
Related PR: 
 * http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13465
Related threads on ML: 
 * http://gcc.gnu.org/ml/fortran/2004-08/msg00131.html
 * http://gcc.gnu.org/ml/fortran/2006-09/msg00025.html

Shell script to generate example data:
$> cat datagen.sh
#! /bin/bash
outfile=data.f90
dim1=50
dim2=1000
echo "MODULE appdata"                              >  ${outfile}
echo "INTEGER :: thedata(${dim1}, ${dim2})"        >> ${outfile}
for i in `seq 1 ${dim1}` ; do
  for j in `seq 1 ${dim2}` ; do
    echo "DATA thedata(${i}, ${j}) / $((i*j)) /"   >> ${outfile}
  done
done
echo "END MODULE"                                  >> ${outfile}

P4 3.2 GHz, 2GB RAM:
$> bash datagen.sh
$> time gfortran-4.2 -c data.f90
real    3m31.646s
user    3m29.545s
sys     0m0.172s


-- 
           Summary: Extremely slow compilation of enumerated DATA
                    statements.
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: franke dot daniel at gmail dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28974


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

end of thread, other threads:[~2006-12-01  2:04 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-07 14:59 [Bug fortran/28974] New: Extremely slow compilation of enumerated DATA statements franke dot daniel at gmail dot com
2006-09-07 17:36 ` [Bug fortran/28974] " steven at gcc dot gnu dot org
2006-09-15  3:00 ` bdavis at gcc dot gnu dot org
2006-09-15  3:01 ` bdavis at gcc dot gnu dot org
2006-09-16 15:01 ` bdavis at gcc dot gnu dot org
2006-09-17 13:54 ` bdavis at gcc dot gnu dot org
2006-11-06  4:10 ` bdavis at gcc dot gnu dot org
2006-11-15  5:10 ` bdavis at gcc dot gnu dot org
2006-11-25  2:39 ` pinskia at gcc dot gnu dot org
2006-11-25  4:12 ` howarth at nitro dot med dot uc dot edu
2006-12-01  2:04 ` chaoyingfu 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).