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
Tobias Decking
GHC
Commits
b7a226fd
Commit
b7a226fd
authored
Jul 23, 2001
by
sof
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[project @ 2001-07-23 20:19:53 by sof]
Handle leading underscores for PrelMain undefineds
parent
42e2be6d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
ghc/compiler/main/DriverPipeline.hs
ghc/compiler/main/DriverPipeline.hs
+3
-3
ghc/compiler/main/DriverUtil.hs
ghc/compiler/main/DriverUtil.hs
+9
-1
No files found.
ghc/compiler/main/DriverPipeline.hs
View file @
b7a226fd
-----------------------------------------------------------------------------
-- $Id: DriverPipeline.hs,v 1.9
1 2001/07/19 14:23:16 rrt
Exp $
-- $Id: DriverPipeline.hs,v 1.9
2 2001/07/23 20:19:53 sof
Exp $
--
-- GHC Driver
--
...
...
@@ -806,8 +806,8 @@ doLink o_files = do
[
"-u"
,
"_PrelMain_mainIO_closure"
,
"-u"
,
"___init_PrelMain"
]
#
else
[
"-u"
,
"PrelMain_mainIO_closure"
,
"-u"
,
"__init_PrelMain"
]
[
"-u"
,
prefixUnderscore
"PrelMain_mainIO_closure"
,
"-u"
,
prefixUnderscore
"__init_PrelMain"
]
#
endif
else
[]
)
...
...
ghc/compiler/main/DriverUtil.hs
View file @
b7a226fd
-----------------------------------------------------------------------------
-- $Id: DriverUtil.hs,v 1.2
5 2001/06/27 10:14:13 rrt
Exp $
-- $Id: DriverUtil.hs,v 1.2
6 2001/07/23 20:19:53 sof
Exp $
--
-- Utils for the driver
--
...
...
@@ -14,6 +14,7 @@ module DriverUtil where
import
Util
import
Panic
import
Config
(
cLeadingUnderscore
)
import
IOExts
import
Exception
...
...
@@ -65,6 +66,13 @@ softGetDirectoryContents d
return
[]
)
-----------------------------------------------------------------------------
-- Prefixing underscore to linker-level names
prefixUnderscore
::
String
->
String
prefixUnderscore
|
cLeadingUnderscore
==
"YES"
=
(
'_'
:
)
|
otherwise
=
id
-----------------------------------------------------------------------------
-- Utils
...
...
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