* [Bug fortran/33120] Large module object files when declare arrays on Mac OSX
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 ` fxcoudert at gcc dot gnu dot org
2007-10-07 19:52 ` [Bug target/33120] " tobi at gcc dot gnu dot org
` (16 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-10-05 12:45 UTC (permalink / raw)
To: gcc-bugs
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fxcoudert at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |missed-optimization
Last reconfirmed|0000-00-00 00:00:00 |2007-10-05 12:45:37
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33120
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug target/33120] Large module object files when declare arrays on Mac OSX
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 ` tobi at gcc dot gnu dot org
2008-10-02 0:34 ` dave dot allured at noaa dot gov
` (15 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: tobi at gcc dot gnu dot org @ 2007-10-07 19:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from tobi at gcc dot gnu dot org 2007-10-07 19:52 -------
Probably more of a target issue than a frontend issue. Please push back to the
frontend with an explanation what the FE is doing wrong if the backend does the
right thing.
--
tobi at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tobi at gcc dot gnu dot org
Component|fortran |target
GCC target triplet| |i386-darwin
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33120
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug target/33120] Large module object files when declare arrays on Mac OSX
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
` (14 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: dave dot allured at noaa dot gov @ 2008-10-02 0:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from dave dot allured at noaa dot gov 2008-10-02 00:32 -------
Confirmed this problem for gcc 4.3.1 on Mac OS 10.5.5.
A workaround, and recommended best practice for new code, is to make arrays in
modules allocatable, i.e. don't declare statically dimensioned large arrays.
Then you must add allocate statements at the appropriate initialization
locations.
This is a problem for legacy fortran 90+ code because adding code for dynamic
allocation can spawn bugs. The preferred solution is that uninitialized
variables should never occupy physical space in object files. My thanks to
whomever can work on this fix.
--Dave A.
--
dave dot allured at noaa dot gov changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dave dot allured at noaa dot
| |gov
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33120
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug target/33120] Large module object files when declare arrays on Mac OSX
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
` (2 preceding siblings ...)
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
` (13 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: johnson at cs dot uiuc dot edu @ 2008-10-07 2:59 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from johnson at cs dot uiuc dot edu 2008-10-07 02:58 -------
Created an attachment (id=16469)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16469&action=view)
fruit.f90, illustrates huge .o file, requires fruit_util.f90
I think I have a testcase that shows this bug. I was trying to compile FRUIT
on my Mac and discovered that fruit.o was 450MB! I am attaching fruit.f90 and
fruit_util.f90. I had to modify fruit.f90 a little bit to make it compile; I
just added a pair of matching parentheses to two lines. So I figured I should
attach the files instead of pointing to them.
Ralph Johnson - johnson@cs.uiuc.edu
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33120
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug target/33120] Large module object files when declare arrays on Mac OSX
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
` (3 preceding siblings ...)
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
` (12 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: johnson at cs dot uiuc dot edu @ 2008-10-07 3:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from johnson at cs dot uiuc dot edu 2008-10-07 02:58 -------
Created an attachment (id=16470)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16470&action=view)
fruit_util.f90, needed to compile fruit.f90
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33120
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug target/33120] Large module object files when declare arrays on Mac OSX
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
` (4 preceding siblings ...)
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
` (11 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: meihome at gmail dot com @ 2008-10-08 14:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from meihome at gmail dot com 2008-10-08 14:28 -------
FORTRAN Unit Testing Framework (Fruit) 2.5 is released. The pre-fixed message
of 300000 is not a dynamic allocated array. The problem should be solved. The
project site is: http://fortranxunit.wiki.sourceforge.net/
--
meihome at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |meihome at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33120
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug target/33120] Large module object files when declare arrays on Mac OSX
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
` (5 preceding siblings ...)
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
` (10 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: meihome at gmail dot com @ 2008-10-08 15:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from meihome at gmail dot com 2008-10-08 15:35 -------
Sorry, the previous fruit_2.5.zip was not tested under gfortran.
Please use the new fruit_2.5.1.zip. That corrected the 450MB file problem, and
compiled under gfortran.
https://sourceforge.net/project/platformdownload.php?group_id=152125&sel_platform=6415
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33120
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug target/33120] Large module object files when declare arrays on Mac OSX
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
` (6 preceding siblings ...)
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
` (9 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: meihome at gmail dot com @ 2008-10-08 16:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from meihome at gmail dot com 2008-10-08 16:43 -------
Sorry for keep on updating this bug report.
Fruit 2.6 is now tested and run with gfortran.
The rake build system also works.
Download and information here: http://fortranxunit.wiki.sourceforge.net/
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33120
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug target/33120] Data not put in BSS section on Mac OS
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
` (7 preceding siblings ...)
2008-10-08 16:44 ` meihome at gmail dot com
@ 2009-12-29 21:34 ` fxcoudert at gcc dot gnu dot org
2010-03-22 18:57 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2009-12-29 21:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from fxcoudert at gcc dot gnu dot org 2009-12-29 21:34 -------
This is not a Fortran issue, but a generic Darwin issue:
$ cat a.c
int x[9999999] = { 0 };
$ gcc -c a.c && ll a.o
-rw-r--r-- 1 fx wheel 38M Dec 29 22:32 a.o
On Linux, for example, we don't get such a large object file as x is put in the
BSS section. Seems like this does not happen on darwin.
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fxcoudert at gcc dot gnu dot
| |org
Last reconfirmed|2007-10-05 12:45:37 |2009-12-29 21:34:35
date| |
Summary|Large module object files |Data not put in BSS section
|when declare arrays on Mac |on Mac OS
|OSX |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33120
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug target/33120] Data not put in BSS section on Mac OS
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
` (8 preceding siblings ...)
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
` (7 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-03-22 18:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from pinskia at gcc dot gnu dot org 2010-03-22 18:57 -------
*** Bug 43481 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |developer at sandoe-
| |acoustics dot co dot uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33120
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug target/33120] Data not put in BSS section on Mac OS
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
` (9 preceding siblings ...)
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
` (6 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: mrs at gcc dot gnu dot org @ 2010-03-23 20:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from mrs at gcc dot gnu dot org 2010-03-23 20:03 -------
Subject: Bug 33120
Author: mrs
Date: Tue Mar 23 20:02:57 2010
New Revision: 157677
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157677
Log:
PR target/33120
* config/darwin.h (ASM_OUTPUT_ALIGNED_BSS): Add.
* config/darwin.c (darwin_output_aligned_bss): Add.
* config/darwin-protos.h: Add darwin_output_aligned_bss.
testsuite:
* g++.dg/ext/instantiate2.C: Update for .zerofill as it doesn't
follow the usual conventions for symbol definitions.
* gcc.target/i386/darwin-zerofill.c: Add.
Added:
trunk/gcc/testsuite/gcc.target/i386/darwin-zerofill.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/darwin-protos.h
trunk/gcc/config/darwin.c
trunk/gcc/config/darwin.h
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/ext/instantiate2.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33120
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug target/33120] Data not put in BSS section on Mac OS
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
` (10 preceding siblings ...)
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
` (5 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: mrs at gcc dot gnu dot org @ 2010-03-23 20:13 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from mrs at gcc dot gnu dot org 2010-03-23 20:13 -------
This should now be fixed.
--
mrs at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33120
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug target/33120] Data not put in BSS section on Mac OS
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
` (11 preceding siblings ...)
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
` (4 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: mrs at gcc dot gnu dot org @ 2010-03-24 16:08 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from mrs at gcc dot gnu dot org 2010-03-24 16:08 -------
Subject: Bug 33120
Author: mrs
Date: Wed Mar 24 16:07:51 2010
New Revision: 157697
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157697
Log:
PR java/43504
Revert fix for PR target/33120.
Removed:
trunk/gcc/testsuite/gcc.target/i386/darwin-zerofill.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/darwin-protos.h
trunk/gcc/config/darwin.c
trunk/gcc/config/darwin.h
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/ext/instantiate2.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33120
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug target/33120] Data not put in BSS section on Mac OS
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
` (12 preceding siblings ...)
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
` (3 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: mrs at gcc dot gnu dot org @ 2010-03-24 16:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #13 from mrs at gcc dot gnu dot org 2010-03-24 16:13 -------
The fixed cause many failures in the libjava testsuite. I've reverted this fix
for now until I can spend some time to resolve those issues. We should also
ensure that ada is clean as well before we consider this done.
--
mrs at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mikestump at comcast dot net
Status|RESOLVED |REOPENED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33120
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug target/33120] Data not put in BSS section on Mac OS
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
` (13 preceding siblings ...)
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
` (2 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: dominiq at lps dot ens dot fr @ 2010-03-24 17:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #14 from dominiq at lps dot ens dot fr 2010-03-24 17:27 -------
Note that there was no libjava test failure with the patch in
http://gcc.gnu.org/ml/fortran/2010-03/txt00007.txt . Also with this patch the
test in comment #8 was not improved.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33120
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug target/33120] Data not put in BSS section on Mac OS
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
` (14 preceding siblings ...)
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
17 siblings, 0 replies; 19+ messages in thread
From: developer at sandoe-acoustics dot co dot uk @ 2010-03-24 17:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #15 from developer at sandoe-acoustics dot co dot uk 2010-03-24 17:39 -------
(In reply to comment #14)
> Note that there was no libjava test failure with the patch in
> http://gcc.gnu.org/ml/fortran/2010-03/txt00007.txt . Also with this patch the
> test in comment #8 was not improved.
since this is re-opened a few notes ..
(a) the test at comment #8 is different from the original bug since it carries
out explicit initialization (as opposed to implicit).
(b) I don't think the issue is the segment into which the data are assembled,
but rather that the .space instruction is inefficient c.f. the .zerofill one.
(c) comment (b) might lead to the observation that we could further improve
things by replacing .space with .zerofill as the darwin ASM_SKIP_OP ..
unfortunately, .zerofill needs state information (viz-a-viz what segment is
current) or, alternatively, a priori knowledge of the target segment.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33120
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug target/33120] Data not put in BSS section on Mac OS
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
` (15 preceding siblings ...)
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
17 siblings, 0 replies; 19+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-04-06 11:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #16 from rguenth at gcc dot gnu dot org 2010-04-06 11:19 -------
GCC 4.5.0 is being released. Deferring to 4.5.1.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.5.0 |4.5.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33120
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug target/33120] Data not put in BSS section on Mac OS
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
` (16 preceding siblings ...)
2010-04-06 11:21 ` rguenth at gcc dot gnu dot org
@ 2010-07-31 9:35 ` rguenth at gcc dot gnu dot org
17 siblings, 0 replies; 19+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-07-31 9:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #17 from rguenth at gcc dot gnu dot org 2010-07-31 09:29 -------
GCC 4.5.1 is being released, adjusting target milestone.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.5.1 |4.5.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33120
^ permalink raw reply [flat|nested] 19+ messages in thread