From: ken Date: Thu, 11 Jul 2002 06:52:23 +0000 (+0000) Subject: [project @ 2002-07-11 06:52:23 by ken] X-Git-Tag: Approx_11550_changesets_converted~1867 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=04895d78cfd66f49c66ff155075a0472634cfb73;p=ghc-hetmet.git [project @ 2002-07-11 06:52:23 by ken] Perhaps defining _REENTRANT when gcc-compiling for the alpha would help with RTS threading problems --- diff --git a/ghc/compiler/main/DriverFlags.hs b/ghc/compiler/main/DriverFlags.hs index 0e2763b..63aa85c 100644 --- a/ghc/compiler/main/DriverFlags.hs +++ b/ghc/compiler/main/DriverFlags.hs @@ -1,5 +1,5 @@ ----------------------------------------------------------------------------- --- $Id: DriverFlags.hs,v 1.98 2002/07/03 15:15:24 sof Exp $ +-- $Id: DriverFlags.hs,v 1.99 2002/07/11 06:52:23 ken Exp $ -- -- Driver flags -- @@ -535,7 +535,11 @@ buildStaticHscOpts = do machdepCCOpts | prefixMatch "alpha" cTARGETPLATFORM - = return ( ["-static", "-w", "-mieee"], [] ) + = return ( ["-static", "-w", "-mieee" +#ifdef HAVE_THREADED_RTS_SUPPORT + , "-D_REENTRANT" +#endif + ], [] ) -- For now, to suppress the gcc warning "call-clobbered -- register used for global register variable", we simply -- disable all warnings altogether using the -w flag. Oh well.