Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex D
GHC
Commits
28a5c73a
Commit
28a5c73a
authored
Jul 11, 2008
by
Ian Lynagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move -fno-cse flags from Makefile into pragmas
These are needed for GLOBAL_VAR's to work properly
parent
9fd41268
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
20 additions
and
12 deletions
+20
-12
compiler/Makefile
compiler/Makefile
+0
-12
compiler/ghci/GhciMonad.hs
compiler/ghci/GhciMonad.hs
+3
-0
compiler/ghci/InteractiveUI.hs
compiler/ghci/InteractiveUI.hs
+3
-0
compiler/ghci/Linker.lhs
compiler/ghci/Linker.lhs
+3
-0
compiler/main/DriverMkDepend.hs
compiler/main/DriverMkDepend.hs
+2
-0
compiler/main/DriverPipeline.hs
compiler/main/DriverPipeline.hs
+3
-0
compiler/main/StaticFlags.hs
compiler/main/StaticFlags.hs
+3
-0
compiler/main/SysTools.lhs
compiler/main/SysTools.lhs
+3
-0
No files found.
compiler/Makefile
View file @
28a5c73a
...
...
@@ -576,18 +576,6 @@ endif
#simplCore/SimplEnv_HC_OPTS = -auto-all
#simplCore/SimplUtils_HC_OPTS = -auto-all
# CSE interacts badly with top-level IORefs (reportedly in DriverState and
# DriverMkDepend), causing some of them to be commoned up. We have a fix for
# this in 5.00+, but earlier versions of the compiler will need CSE turned off.
# To be on the safe side, we disable CSE in *all* modules with top-level IORefs.
ghci/
InteractiveUI_HC_OPTS
=
-fno-cse
main/
CmdLineOpts_HC_OPTS
=
-fno-cse
main/
DriverMkDepend_HC_OPTS
=
-fno-cse
main/
DriverPipeline_HC_OPTS
=
-fno-cse
main/
Finder_HC_OPTS
=
-fno-cse
main/
SysTools_HC_OPTS
=
-fno-cse
main/
StaticFlags_HC_OPTS
=
-fno-cse
# The #include is vital for the via-C route, else the C
# compiler doesn't realise that the stcall foreign imports are indeed
# stdcall, and doesn't generate the Foo@8 name for them
...
...
compiler/ghci/GhciMonad.hs
View file @
28a5c73a
{-# OPTIONS -fno-cse #-}
-- -fno-cse is needed for GLOBAL_VAR's to behave properly
-----------------------------------------------------------------------------
--
-- Monadery code used in InteractiveUI
...
...
compiler/ghci/InteractiveUI.hs
View file @
28a5c73a
{-# OPTIONS -fno-cse #-}
-- -fno-cse is needed for GLOBAL_VAR's to behave properly
{-# OPTIONS -#include "Linker.h" #-}
-----------------------------------------------------------------------------
--
...
...
compiler/ghci/Linker.lhs
View file @
28a5c73a
...
...
@@ -14,6 +14,9 @@ necessary.
\begin{code}
{-# OPTIONS -optc-DNON_POSIX_SOURCE -#include "Linker.h" #-}
{-# OPTIONS -fno-cse #-}
-- -fno-cse is needed for GLOBAL_VAR's to behave properly
module Linker ( HValue, getHValue, showLinkerState,
linkExpr, unload, withExtendedLinkEnv,
extendLinkEnv, deleteFromLinkEnv,
...
...
compiler/main/DriverMkDepend.hs
View file @
28a5c73a
{-# OPTIONS -fno-cse #-}
-- -fno-cse is needed for GLOBAL_VAR's to behave properly
-----------------------------------------------------------------------------
--
...
...
compiler/main/DriverPipeline.hs
View file @
28a5c73a
{-# OPTIONS -fno-cse #-}
-- -fno-cse is needed for GLOBAL_VAR's to behave properly
-----------------------------------------------------------------------------
--
-- GHC Driver
...
...
compiler/main/StaticFlags.hs
View file @
28a5c73a
{-# OPTIONS -fno-cse #-}
-- -fno-cse is needed for GLOBAL_VAR's to behave properly
-----------------------------------------------------------------------------
--
-- Static flags
...
...
compiler/main/SysTools.lhs
View file @
28a5c73a
...
...
@@ -7,6 +7,9 @@
-----------------------------------------------------------------------------
\begin{code}
{-# OPTIONS -fno-cse #-}
-- -fno-cse is needed for GLOBAL_VAR's to behave properly
module SysTools (
-- Initialisation
initSysTools,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment