[GHC] #5240: help GNU ld to use less memory when linking libraries compiled with -split-objs.

GHC cvs-ghc at haskell.org
Mon Aug 6 01:16:30 CEST 2012


#5240: help GNU ld to use less memory when linking libraries compiled with -split-
objs.
-------------------------------+--------------------------------------------
  Reporter:  int-e             |          Owner:  igloo           
      Type:  feature request   |         Status:  closed          
  Priority:  high              |      Milestone:  7.4.1           
 Component:  Compiler          |        Version:  7.0.3           
Resolution:  fixed             |       Keywords:                  
        Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown      |     Difficulty:  Unknown         
  Testcase:                    |      Blockedby:                  
  Blocking:                    |        Related:                  
-------------------------------+--------------------------------------------
Changes (by igloo):

  * status:  infoneeded => closed
  * resolution:  => fixed


Comment:

 Aha, looks like this is an old gcc bug that has been fixed:
 {{{
 $ /usr/bin/gcc-4.1 -c j.c -Wl,--foo
 gcc-4.1: --foo: linker input file unused because linking not done
 $ /usr/bin/gcc-4.3 -c j.c -Wl,--foo
 $
 }}}

 I don't think it's worth working around this in GHC, as (a) it doesn't
 cause any real problems, just prints some warnings, and (b) it can be
 solved by upgrading to a recent gcc.

 I have just pushed a patch to fix the problem that `LdCmd` wasn't getting
 defined in the bindist `configure.ac`, though. Thanks for spotting that.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5240#comment:18>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the Glasgow-haskell-bugs mailing list