Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Carl Shapiro
cmucl
Commits
ea952a04
Commit
ea952a04
authored
22 years ago
by
pmai
Browse files
Options
Downloads
Patches
Plain Diff
Fix deftransform for foreign-symbol-address to match function definition
w.r.t. the keyword argument flavor.
parent
03b93fcb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compiler/saptran.lisp
+20
-19
20 additions, 19 deletions
compiler/saptran.lisp
with
20 additions
and
19 deletions
compiler/saptran.lisp
+
20
−
19
View file @
ea952a04
...
...
@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/saptran.lisp,v 1.1
2
200
2
/0
8/2
7 22:1
8:27 moore
Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/saptran.lisp,v 1.1
3
200
3
/0
3/1
7 22:1
0:59 pmai
Exp $"
)
;;;
;;; **********************************************************************
;;;
...
...
@@ -33,24 +33,25 @@
;;; Preserve compatibility for ports that don't use linkage table yet
(
deftransform
foreign-symbol-address
((
symbol
&key
flavor
)
(
simple-string
&rest
*
))
(
if
(
not
flavor
)
(
progn
#+
linkage-table
(
compiler-error
"FOREIGN-SYMBOL-ADDRESS must be qualified with :CODE or :DATA"
)
#-
linkage-table
(
give-up
))
(
let
((
flav
(
cond
((
not
(
constant-continuation-p
flavor
))
(
compiler-error
"FOREIGN-SYMBOL-ADDRESS flavor is not constant."
flavor
))
(
t
(
continuation-value
flavor
)))))
(
cond
((
eq
flav
:code
)
`
(
#+
linkage-table
foreign-symbol-code-address
#-
linkage-table
foreign-symbol-address
symbol
))
((
eq
flav
:data
)
`
(
#+
linkage-table
foreign-symbol-data-address
#-
linkage-table
foreign-symbol-address
symbol
))
(
t
(
compiler-error
"FOREIGN-SYMBOL-ADDRESS flavor ~S is not :CODE or :DATA"
))))))
#-
linkage-table
(
when
(
null
flavor
)
(
give-up
))
(
let
((
flav
(
cond
((
null
flavor
)
:code
)
((
not
(
constant-continuation-p
flavor
))
(
give-up
))
(
t
(
continuation-value
flavor
)))))
(
case
flav
(
:code
`
(
#+
linkage-table
foreign-symbol-code-address
#-
linkage-table
foreign-symbol-address
symbol
))
(
:data
`
(
#+
linkage-table
foreign-symbol-data-address
#-
linkage-table
foreign-symbol-address
symbol
))
(
t
(
compiler-error
"FOREIGN-SYMBOL-ADDRESS flavor ~S is not :CODE or :DATA"
)))))
(
defknown
(
sap<
sap<=
sap=
sap>=
sap>
)
(
system-area-pointer
system-area-pointer
)
boolean
...
...
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