From: wolfgang Date: Sun, 13 Oct 2002 10:55:06 +0000 (+0000) Subject: [project @ 2002-10-13 10:55:06 by wolfgang] X-Git-Tag: Approx_11550_changesets_converted~1554 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=61de6a58cf88fec88d20e8ee7250a4a519ef6bd9 [project @ 2002-10-13 10:55:06 by wolfgang] Darwin/PowerPC: Don't generate PIC code by default Non-PIC-code is slightly smaller and faster. This means that GHC now requires GCC3 (Mac OS X 10.2 Jaguar). MERGE TO STABLE --- diff --git a/ghc/compiler/main/DriverFlags.hs b/ghc/compiler/main/DriverFlags.hs index cf039d9..a9569b4 100644 --- a/ghc/compiler/main/DriverFlags.hs +++ b/ghc/compiler/main/DriverFlags.hs @@ -1,5 +1,5 @@ ----------------------------------------------------------------------------- --- $Id: DriverFlags.hs,v 1.103 2002/10/11 16:45:17 simonpj Exp $ +-- $Id: DriverFlags.hs,v 1.104 2002/10/13 10:55:06 wolfgang Exp $ -- -- Driver flags -- @@ -598,7 +598,15 @@ machdepCCOpts -- disable all warnings altogether using the -w flag. Oh well. | prefixMatch "powerpc-apple-darwin" cTARGETPLATFORM - = return ( ["-no-cpp-precomp"], [""] ) + -- -no-cpp-precomp: + -- Disable Apple's precompiling preprocessor. It's a great thing + -- for "normal" programs, but it doesn't support register variable + -- declarations. + -- -mdynamic-no-pic: + -- As we don't support haskell code in shared libraries anyway, + -- we might as well turn of PIC code generation and save space and time. + -- This is completely optional. + = return ( ["-no-cpp-precomp","-mdynamic-no-pic"], [] ) | prefixMatch "powerpc" cTARGETPLATFORM || prefixMatch "rs6000" cTARGETPLATFORM = return ( ["-static"], ["-finhibit-size-directive"] )