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
  2009-12-29 21:34 ` [Bug target/33120] Data not put in BSS section on Mac OS fxcoudert at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 18+ 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] 18+ messages in thread

end of thread, other threads:[~2010-12-16 21:05 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-33120-4@http.gcc.gnu.org/bugzilla/>
2010-11-29 15:41 ` [Bug target/33120] Data not put in BSS section on Mac OS iains at gcc dot gnu.org
2010-12-16 13:14 ` rguenth at gcc dot gnu.org
2010-12-16 19:55 ` mrs at gcc dot gnu.org
2010-12-16 19:57 ` mrs at gcc dot gnu.org
2010-12-16 20:00 ` mrs at gcc dot gnu.org
2010-12-16 20:06 ` mrs at gcc dot gnu.org
2010-12-16 20:07 ` iains at gcc dot gnu.org
2010-12-16 21:05 ` mikestump at comcast dot net
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
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).