public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/33120]  New: Large module object files when declare arrays on Mac OSX
@ 2007-08-20 11:01 akt at cpom dot ucl dot ac dot uk
  2007-10-05 12:45 ` [Bug fortran/33120] " fxcoudert at gcc dot gnu dot org
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: akt at cpom dot ucl dot ac dot uk @ 2007-08-20 11:01 UTC (permalink / raw)
  To: gcc-bugs

When gfortran compiles a module on OSX which declares defined size arrays the
resulting module object file contains the array's allocated memory making the
files potentially enourmous. e.g.

module test_module
  real, dimension(10000000) :: a
end module test_module

gfortran -c test_module.f90

If the array size is 10000000 then the size of test_module.o is 40000356 bytes.
This doesn't happen with the other fortran compilers I use, nor with gfortran
on linux.

akt% uname -a
Darwin m21.cpom.ucl.ac.uk 8.10.0 Darwin Kernel Version 8.10.0: Wed May 23
16:50:59 PDT 2007; root:xnu-792.21.3~1/RELEASE_PPC Power Macintosh powerpc

akt% /opt/local/bin/gfortran -v
Using built-in specs.
Target: powerpc-apple-darwin8.10.0
Configured with: ../gcc-4.2.1/configure --prefix=/opt/local
--enable-languages=c,c++,java,objc,obj-c++,fortran
--libdir=/opt/local/lib/gcc42 --includedir=/opt/local/include/gcc42
--infodir=/opt/local/share/info --mandir=/opt/local/share/man
--with-local-prefix=/opt/local --with-system-zlib --disable-nls
--disable-multilib --program-suffix=-mp-4.2
--with-gxx-include-dir=/opt/local/include/gcc42/c++/ --with-gmp=/opt/local
--with-mpfr=/opt/local
Thread model: posix
gcc version 4.2.1


-- 
           Summary: Large module object files when declare arrays on Mac OSX
           Product: gcc
           Version: 4.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: akt at cpom dot ucl dot ac dot uk


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


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

end of thread, other threads:[~2010-07-31  9:30 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-20 11:01 [Bug fortran/33120] New: Large module object files when declare arrays on Mac OSX akt at cpom dot ucl dot ac dot uk
2007-10-05 12:45 ` [Bug fortran/33120] " fxcoudert at gcc dot gnu dot org
2007-10-07 19:52 ` [Bug target/33120] " tobi at gcc dot gnu dot org
2008-10-02  0:34 ` dave dot allured at noaa dot gov
2008-10-07  2:59 ` johnson at cs dot uiuc dot edu
2008-10-07  3:00 ` johnson at cs dot uiuc dot edu
2008-10-08 14:29 ` meihome at gmail dot com
2008-10-08 15:36 ` meihome at gmail dot com
2008-10-08 16:44 ` meihome at gmail dot com
2009-12-29 21:34 ` [Bug target/33120] Data not put in BSS section on Mac OS fxcoudert at gcc dot gnu dot org
2010-03-22 18:57 ` pinskia at gcc dot gnu dot org
2010-03-23 20:03 ` mrs at gcc dot gnu dot org
2010-03-23 20:13 ` mrs at gcc dot gnu dot org
2010-03-24 16:08 ` mrs at gcc dot gnu dot org
2010-03-24 16:14 ` mrs at gcc dot gnu dot org
2010-03-24 17:27 ` dominiq at lps dot ens dot fr
2010-03-24 17:39 ` developer at sandoe-acoustics dot co dot uk
2010-04-06 11:21 ` rguenth at gcc dot gnu dot org
2010-07-31  9:35 ` rguenth 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).