Commit ad94d409 authored by Ian Lynagh's avatar Ian Lynagh

Use OPTIONS rather than OPTIONS_GHC for pragmas

Older GHCs can't parse OPTIONS_GHC.
This also changes the URL referenced for the -w options from
WorkingConventions#Warnings to CodingStyle#Warnings for the compiler
modules.
parent 45202530
......@@ -222,7 +222,7 @@ boot :: $(CONFIG_HS)
$(CONFIG_HS) : $(FPTOOLS_TOP)/mk/config.mk
@$(RM) -f $(CONFIG_HS)
@echo "Creating $(CONFIG_HS) ... "
@echo "{-# OPTIONS_GHC -w #-}" >>$(CONFIG_HS)
@echo "{-# OPTIONS -w #-}" >>$(CONFIG_HS)
@echo "module Config where" >>$(CONFIG_HS)
@echo "cProjectName = \"$(ProjectName)\"" >> $(CONFIG_HS)
@echo "cProjectVersion = \"$(ProjectVersion)\"" >> $(CONFIG_HS)
......
......@@ -14,11 +14,11 @@ types that
\end{itemize}
\begin{code}
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module BasicTypes(
......
......@@ -5,11 +5,11 @@
\section[DataCon]{@DataCon@: Data Constructors}
\begin{code}
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module DataCon (
......
......@@ -5,11 +5,11 @@
\section[Demand]{@Demand@: the amount of demand on a value}
\begin{code}
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
#ifndef OLD_STRICTNESS
......
......@@ -5,11 +5,11 @@
\section[Id]{@Ids@: Value and constructor identifiers}
\begin{code}
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module Id (
......
......@@ -8,11 +8,11 @@
Haskell. [WDP 94/11])
\begin{code}
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module IdInfo (
......
......@@ -5,11 +5,11 @@
\section[Literal]{@Literal@: Machine literals (unboxed, of course)}
\begin{code}
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module Literal
......
......@@ -12,11 +12,11 @@ have a standard form, namely:
* primitive operations
\begin{code}
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module MkId (
......
......@@ -9,11 +9,11 @@ These are Uniquable, hence we can build FiniteMaps with Modules as
the keys.
\begin{code}
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module Module
......
......@@ -5,11 +5,11 @@
\section[Name]{@Name@: to transmit name info from renamer to typechecker}
\begin{code}
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module Name (
......
......@@ -5,11 +5,11 @@
\section[NameEnv]{@NameEnv@: name environments}
\begin{code}
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module NameEnv (
......
......@@ -4,11 +4,11 @@
%
\begin{code}
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module NameSet (
......
......@@ -5,11 +5,11 @@
\section[Demand]{@Demand@: the amount of demand on a value}
\begin{code}
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module NewDemand(
......
......@@ -4,11 +4,11 @@
%
\begin{code}
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module OccName (
......
......@@ -4,11 +4,11 @@
%
\begin{code}
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module RdrName (
......
......@@ -3,11 +3,11 @@
%
\begin{code}
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module SrcLoc (
......
......@@ -4,11 +4,11 @@
%
\begin{code}
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module UniqSupply (
......
......@@ -16,11 +16,11 @@ Some of the other hair in this code is to be able to use a
Haskell).
\begin{code}
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module Unique (
......
......@@ -5,11 +5,11 @@
\section{@Vars@: Variables}
\begin{code}
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module Var (
......
......@@ -4,11 +4,11 @@
%
\begin{code}
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module VarEnv (
......
......@@ -4,11 +4,11 @@
%
\begin{code}
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module VarSet (
......
......@@ -6,11 +6,11 @@
--
-----------------------------------------------------------------------------
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module CLabel (
......
......@@ -6,11 +6,11 @@
--
-----------------------------------------------------------------------------
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module Cmm (
......
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module CmmBrokenBlock (
......
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module CmmCPS (
......
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module CmmCPSGen (
......
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module CmmCallConv (
......
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module CmmInfo (
......
......@@ -11,11 +11,11 @@
-----------------------------------------------------------------------------
{
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module CmmLex (
......
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
-----------------------------------------------------------------------------
......
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module CmmLive (
......
......@@ -6,11 +6,11 @@
--
-----------------------------------------------------------------------------
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module CmmOpt (
......
......@@ -7,11 +7,11 @@
-----------------------------------------------------------------------------
{
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module CmmParse ( parseCmmFile ) where
......
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module CmmProcPoint (
......
......@@ -6,11 +6,11 @@
--
-----------------------------------------------------------------------------
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module CmmUtils(
......
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module Dataflow (
......
......@@ -6,11 +6,11 @@
--
-----------------------------------------------------------------------------
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module MachOp (
......
......@@ -16,11 +16,11 @@
-- ToDo: save/restore volatile registers around calls.
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module PprC (
......
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
----------------------------------------------------------------------------
......
......@@ -6,11 +6,11 @@
-- places in generated code (stack frame liveness masks, function
-- argument liveness masks, SRT bitmaps).
{-# OPTIONS_GHC -w #-}
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details