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
4,310
Issues
4,310
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
382
Merge Requests
382
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
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
Glasgow Haskell Compiler
GHC
Commits
d7b3ad9b
Commit
d7b3ad9b
authored
Jul 10, 2008
by
Ian Lynagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move more flags from the Makefile into pragmas
parent
3b3fee83
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
19 deletions
+10
-19
compiler/Makefile
compiler/Makefile
+0
-18
compiler/main/ParsePkgConf.y
compiler/main/ParsePkgConf.y
+1
-1
compiler/parser/Parser.y.pp
compiler/parser/Parser.y.pp
+8
-0
compiler/prelude/PrimOp.lhs
compiler/prelude/PrimOp.lhs
+1
-0
No files found.
compiler/Makefile
View file @
d7b3ad9b
...
@@ -571,24 +571,6 @@ ifeq "$(BootingFromHc)" "YES"
...
@@ -571,24 +571,6 @@ ifeq "$(BootingFromHc)" "YES"
SRC_CC_OPTS
+=
-D__GLASGOW_HASKELL__
=
$(ProjectVersionInt)
SRC_CC_OPTS
+=
-D__GLASGOW_HASKELL__
=
$(ProjectVersionInt)
endif
endif
# Special flags for particular modules
# The standard suffix rule for compiling a Haskell file
# adds these flags to the command line
# There used to be a -fforce-recomp flag on PrimOp, but why?
# It's an expensive module to recompile!
prelude/
PrimOp_HC_OPTS
=
-H80m
main/
ParsePkgConf_HC_OPTS
+=
-fno-warn-incomplete-patterns
parser/
Parser_HC_OPTS
+=
-fno-warn-incomplete-patterns
# Careful optimisation of the parser: we don't want to throw everything
# at it, because that takes too long and doesn't buy much, but we do want
# to inline certain key external functions, so we instruct GHC not to
# throw away inlinings as it would normally do in -O0 mode:
parser/
Parser_HC_OPTS
+=
-O0
-fno-ignore-interface-pragmas
ifeq
"$(HOSTPLATFORM)" "hppa1.1-hp-hpux9"
ifeq
"$(HOSTPLATFORM)" "hppa1.1-hp-hpux9"
rename/
RnMonad_HC_OPTS
=
-O2
-O2-for-C
rename/
RnMonad_HC_OPTS
=
-O2
-O2-for-C
endif
endif
...
...
compiler/main/ParsePkgConf.y
View file @
d7b3ad9b
{
{
{-# OPTIONS -fno-warn-unused-binds -fno-warn-unused-matches -fno-warn-missing-signatures #-}
{-# OPTIONS -fno-warn-unused-binds -fno-warn-unused-matches -fno-warn-missing-signatures
-fno-warn-incomplete-patterns
#-}
-- The above warning supression flag is a temporary kludge.
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- any warnings in the module. See
...
...
compiler/parser/Parser.y.pp
View file @
d7b3ad9b
...
@@ -8,6 +8,14 @@
...
@@ -8,6 +8,14 @@
--
---------------------------------------------------------------------------
--
---------------------------------------------------------------------------
{
{
{
-
# OPTIONS_GHC -O0 -fno-ignore-interface-pragmas #-}
{
-
Careful
optimisation
of
the
parser
:
we
don
't want to throw everything
at it, because that takes too long and doesn'
t
buy
much
,
but
we
do
want
to
inline
certain
key
external
functions
,
so
we
instruct
GHC
not
to
throw
away
inlinings
as
it
would
normally
do
in
-
O0
mode
.
-
}
{
-
# OPTIONS -w #-}
{
-
# OPTIONS -w #-}
--
The
above
warning
supression
flag
is
a
temporary
kludge
.
--
The
above
warning
supression
flag
is
a
temporary
kludge
.
--
While
working
on
this
module
you
are
encouraged
to
remove
it
and
fix
--
While
working
on
this
module
you
are
encouraged
to
remove
it
and
fix
...
...
compiler/prelude/PrimOp.lhs
View file @
d7b3ad9b
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
\section[PrimOp]{Primitive operations (machine-level)}
\section[PrimOp]{Primitive operations (machine-level)}
\begin{code}
\begin{code}
{-# OPTIONS_GHC -H80m #-}
{-# OPTIONS -fno-warn-unused-binds #-}
{-# OPTIONS -fno-warn-unused-binds #-}
-- The above warning supression flag is a temporary kludge.
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- While working on this module you are encouraged to remove it and fix
...
...
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