Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gesh
GHC
Commits
7509d7f5
Commit
7509d7f5
authored
24 years ago
by
Simon Marlow
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 2000-07-03 16:06:17 by simonmar]
D'oh! Only generate split markers when actually splitting
parent
bc823a08
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/compiler/nativeGen/AbsCStixGen.lhs
+4
-2
4 additions, 2 deletions
ghc/compiler/nativeGen/AbsCStixGen.lhs
with
4 additions
and
2 deletions
ghc/compiler/nativeGen/AbsCStixGen.lhs
+
4
−
2
View file @
7509d7f5
...
@@ -46,7 +46,7 @@ import DataCon ( dataConWrapId )
...
@@ -46,7 +46,7 @@ import DataCon ( dataConWrapId )
import BitSet ( intBS )
import BitSet ( intBS )
import Name ( NamedThing(..) )
import Name ( NamedThing(..) )
import Char ( ord )
import Char ( ord )
import CmdLineOpts ( opt_Static )
import CmdLineOpts ( opt_Static
, opt_EnsureSplittableC
)
\end{code}
\end{code}
For each independent chunk of AbstractC code, we generate a list of
For each independent chunk of AbstractC code, we generate a list of
...
@@ -263,7 +263,9 @@ split-mangler later on and used to split the assembly into chunks.
...
@@ -263,7 +263,9 @@ split-mangler later on and used to split the assembly into chunks.
\begin{code}
\begin{code}
gencode CSplitMarker = returnUs (\xs -> StLabel mkSplitMarkerLabel : xs)
gencode CSplitMarker
| opt_EnsureSplittableC = returnUs (\xs -> StLabel mkSplitMarkerLabel : xs)
| otherwise = returnUs id
\end{code}
\end{code}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment