Opened 9 years ago

Closed 9 years ago

#809 closed bug (fixed)

SplitObjs option doesn't work when compiling ghc with gcc 4.x

Reported by: guest Owned by:
Priority: high Milestone:
Component: Compiler Version: 6.4.2
Keywords: SplitObjs Cc:
Operating System: Linux Architecture: x86
Type of failure: Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):


When I compile ghc using the SplitObjs=YES option in my file, and use gcc-4.1.1 as my C compiler, the SplitObjs option has no effect, whereas it works as advertised with gcc-3.3. This has been discussed on the haskell and haskell-cafe mailing lists:

Change History (2)

comment:1 Changed 9 years ago by simonmar

Can someone check whether -fno-unit-at-a-time makes a difference? That is, add -optc-fno-unit-at-a-time to the offending compilation.

x86_64 has been using this flag for a while, I'm not sure why we haven't needed it on x86 too - or maybe we just didn't notice. I don't have gcc 4.x on our x86 boxes here.

comment:2 Changed 9 years ago by simonmar

  • Resolution set to fixed
  • Status changed from new to closed

-fno-unit-at-a-time fixes it.

Note: See TracTickets for help on using tickets.