Make sure GCC uses the Sparc V9 instruction set
authorRoman Leshchinskiy <rl@cse.unsw.edu.au>
Fri, 25 Aug 2006 10:16:46 +0000 (10:16 +0000)
committerRoman Leshchinskiy <rl@cse.unsw.edu.au>
Fri, 25 Aug 2006 10:16:46 +0000 (10:16 +0000)
commit1777f480284b6700827951b7b8d80f179eedc84e
tree097c2f33369862ac238dea76a533a19cc1a6673d
parentac548e9fd9014cc372dcab31eb4c0392ee80ed4e
Make sure GCC uses the Sparc V9 instruction set

We only support Sparc V9 and better as V8 lacks an atomic CAS instruction
which we need for SMP. This means that we have to pass -mcpu=v9 to GCC when
compiling and assembling. Hardcoding the flag is hackish but seems to be
our best bet at the moment. It can still be overridden by the user as GCC
picks the best -mcpu flag regardless of the ordering.
compiler/main/DriverPipeline.hs