From: sewardj Date: Fri, 31 Aug 2001 13:51:45 +0000 (+0000) Subject: [project @ 2001-08-31 13:51:45 by sewardj] X-Git-Tag: Approximately_9120_patches~1038 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=cc3d91e372a0bdc6e74a0e2a1fb1b27df3c636f0;p=ghc-hetmet.git [project @ 2001-08-31 13:51:45 by sewardj] Pass -w to gcc for .hc compilation on sparc-solaris so as to suppress warnings about call-clobbered regs being used for global vars. --- diff --git a/ghc/compiler/main/DriverFlags.hs b/ghc/compiler/main/DriverFlags.hs index e9b2a80..06e2bc5 100644 --- a/ghc/compiler/main/DriverFlags.hs +++ b/ghc/compiler/main/DriverFlags.hs @@ -1,7 +1,7 @@ {-# OPTIONS -#include "hschooks.h" #-} ----------------------------------------------------------------------------- --- $Id: DriverFlags.hs,v 1.66 2001/08/17 17:18:52 apt Exp $ +-- $Id: DriverFlags.hs,v 1.67 2001/08/31 13:51:45 sewardj Exp $ -- -- Driver flags -- @@ -517,6 +517,9 @@ machdepCCOpts | prefixMatch "mips" cTARGETPLATFORM = return ( ["-static"], [] ) + | prefixMatch "sparc" cTARGETPLATFORM + = return ( [], ["-w"] ) + | prefixMatch "powerpc" cTARGETPLATFORM || prefixMatch "rs6000" cTARGETPLATFORM = return ( ["-static"], ["-finhibit-size-directive"] )