Let GHCi work with with Sparc32+/V8+ .o files
authorDuncan Coutts <duncan.coutts@worc.ox.ac.uk>
Tue, 16 May 2006 09:04:30 +0000 (09:04 +0000)
committerDuncan Coutts <duncan.coutts@worc.ox.ac.uk>
Tue, 16 May 2006 09:04:30 +0000 (09:04 +0000)
commit82807c2121870bd2458a29037c5518b2bc90007c
tree57d088571ebe85b28f26269e06d6be0e12e76049
parentf0c000ef6c996a3654f64f97b39e58d3b3d68dd6
Let GHCi work with with Sparc32+/V8+ .o files
Currently the GHCi linker looks exclusively for V7 ABI .o files.

You can generate V8+ ABI .o files using flags to gcc such as:
 -optc-mcpu=ultrasparc -opta-mcpu=ultrasparc

Note that this allows gcc to generate hardware integer division and
hardware floating point instructions rather than using software emulation.
All recent sparc hardware is V8+ or later. Perhaps we should check for the
cpu generation in configure and use the later ABI if possible.

Tested briefly on a SunBlade 100 (TI UltraSparc IIe) sparc-unknown-linux
rts/Linker.c