public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/43481]  New: huge object files generated for un-initialized data
@ 2010-03-22 16:16 developer at sandoe-acoustics dot co dot uk
  2010-03-22 16:19 ` [Bug fortran/43481] " developer at sandoe-acoustics dot co dot uk
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: developer at sandoe-acoustics dot co dot uk @ 2010-03-22 16:16 UTC (permalink / raw)
  To: gcc-bugs

simple definitions of un-initialized data are using the .space asm directive
which results in huge object files where fortran common variables are sizeable.

Although this is reported against fortran, it is possible that it also
manifests for other components.

credit for reporting this to  Andy Nelson


-- 
           Summary: huge object files generated for un-initialized data
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: developer at sandoe-acoustics dot co dot uk
GCC target triplet: *-apple-darwin*


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


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

* [Bug fortran/43481] huge object files generated for un-initialized data
  2010-03-22 16:16 [Bug fortran/43481] New: huge object files generated for un-initialized data developer at sandoe-acoustics dot co dot uk
@ 2010-03-22 16:19 ` developer at sandoe-acoustics dot co dot uk
  2010-03-22 16:22 ` developer at sandoe-acoustics dot co dot uk
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: developer at sandoe-acoustics dot co dot uk @ 2010-03-22 16:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from developer at sandoe-acoustics dot co dot uk  2010-03-22 16:18 -------
Created an attachment (id=20160)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20160&action=view)
reduced testcase

this compiles to an 7.6Mb object on current trunk.


-- 


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


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

* [Bug fortran/43481] huge object files generated for un-initialized data
  2010-03-22 16:16 [Bug fortran/43481] New: huge object files generated for un-initialized data developer at sandoe-acoustics dot co dot uk
  2010-03-22 16:19 ` [Bug fortran/43481] " developer at sandoe-acoustics dot co dot uk
@ 2010-03-22 16:22 ` developer at sandoe-acoustics dot co dot uk
  2010-03-22 16:52 ` [Bug target/43481] " jb at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: developer at sandoe-acoustics dot co dot uk @ 2010-03-22 16:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from developer at sandoe-acoustics dot co dot uk  2010-03-22 16:21 -------
Created an attachment (id=20161)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20161&action=view)
provisional fix against 157594

this is plagiarized in its entirety from  apple/llvm 4.2 (was fixed in that
tree in 2002 apparently).  
Credit for the fix should go to turley.

reg-tested on i686-apple-darwin9.


-- 


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


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

* [Bug target/43481] huge object files generated for un-initialized data
  2010-03-22 16:16 [Bug fortran/43481] New: huge object files generated for un-initialized data developer at sandoe-acoustics dot co dot uk
  2010-03-22 16:19 ` [Bug fortran/43481] " developer at sandoe-acoustics dot co dot uk
  2010-03-22 16:22 ` developer at sandoe-acoustics dot co dot uk
@ 2010-03-22 16:52 ` jb at gcc dot gnu dot org
  2010-03-22 16:59 ` developer at sandoe-acoustics dot co dot uk
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jb at gcc dot gnu dot org @ 2010-03-22 16:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jb at gcc dot gnu dot org  2010-03-22 16:51 -------
Seems to be a target bug, nothing to do with the Fortran frontend. 

Also, unless "turley" has a copyright assignment on file with the FSF (didn't
find him/her in the MAINTAINERS file), the patch unfortunately cannot be
accepted.


-- 

jb at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|fortran                     |target


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


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

* [Bug target/43481] huge object files generated for un-initialized data
  2010-03-22 16:16 [Bug fortran/43481] New: huge object files generated for un-initialized data developer at sandoe-acoustics dot co dot uk
                   ` (2 preceding siblings ...)
  2010-03-22 16:52 ` [Bug target/43481] " jb at gcc dot gnu dot org
@ 2010-03-22 16:59 ` developer at sandoe-acoustics dot co dot uk
  2010-03-22 18:55 ` developer at sandoe-acoustics dot co dot uk
  2010-03-22 18:57 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: developer at sandoe-acoustics dot co dot uk @ 2010-03-22 16:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from developer at sandoe-acoustics dot co dot uk  2010-03-22 16:59 -------
(In reply to comment #3)

> Also, unless "turley" has a copyright assignment on file with the FSF (didn't
> find him/her in the MAINTAINERS file), the patch unfortunately cannot be
> accepted.

It's from the apple / llvm tree which is already under FSF license - albeit V2. 
INAL - but I'm under the impression that there's no barrier to ports from that
tree (other than time/effort/skill).


-- 


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


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

* [Bug target/43481] huge object files generated for un-initialized data
  2010-03-22 16:16 [Bug fortran/43481] New: huge object files generated for un-initialized data developer at sandoe-acoustics dot co dot uk
                   ` (3 preceding siblings ...)
  2010-03-22 16:59 ` developer at sandoe-acoustics dot co dot uk
@ 2010-03-22 18:55 ` developer at sandoe-acoustics dot co dot uk
  2010-03-22 18:57 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: developer at sandoe-acoustics dot co dot uk @ 2010-03-22 18:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from developer at sandoe-acoustics dot co dot uk  2010-03-22 18:55 -------
(In reply to comment #3)

> Also, unless "turley" has a copyright assignment on file with the FSF (didn't
> find him/her in the MAINTAINERS file), the patch unfortunately cannot be
> accepted.

for the record also - my typo:

the fix author was Turly O'Connor (turly@apple.com) listed in the MAINTAINER's
file for the tree revision from which the patch was taken  [although not listed
in MAINTAINERs for trunk]


-- 


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


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

* [Bug target/43481] huge object files generated for un-initialized data
  2010-03-22 16:16 [Bug fortran/43481] New: huge object files generated for un-initialized data developer at sandoe-acoustics dot co dot uk
                   ` (4 preceding siblings ...)
  2010-03-22 18:55 ` developer at sandoe-acoustics dot co dot uk
@ 2010-03-22 18:57 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-03-22 18:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pinskia at gcc dot gnu dot org  2010-03-22 18:57 -------


*** This bug has been marked as a duplicate of 33120 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2010-03-22 18:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-22 16:16 [Bug fortran/43481] New: huge object files generated for un-initialized data developer at sandoe-acoustics dot co dot uk
2010-03-22 16:19 ` [Bug fortran/43481] " developer at sandoe-acoustics dot co dot uk
2010-03-22 16:22 ` developer at sandoe-acoustics dot co dot uk
2010-03-22 16:52 ` [Bug target/43481] " jb at gcc dot gnu dot org
2010-03-22 16:59 ` developer at sandoe-acoustics dot co dot uk
2010-03-22 18:55 ` developer at sandoe-acoustics dot co dot uk
2010-03-22 18:57 ` pinskia 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).