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
070aad83
Commit
070aad83
authored
33 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Added def-ir1-translator for compiler-option-bind. Not for randoms to use.
parent
065709dd
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/ir1tran.lisp
+23
-1
23 additions, 1 deletion
compiler/ir1tran.lisp
with
23 additions
and
1 deletion
compiler/ir1tran.lisp
+
23
−
1
View file @
070aad83
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
;;;
(
ext:file-comment
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/ir1tran.lisp,v 1.4
8
1991/0
5/24
0
1
:0
3
:5
2 ram
Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/ir1tran.lisp,v 1.4
9
1991/0
7/18
0
2
:0
8
:5
1 wlott
Exp $"
)
;;;
;;;
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
...
@@ -2281,6 +2281,28 @@
...
@@ -2281,6 +2281,28 @@
start
cont
; Ignore hack
start
cont
; Ignore hack
(
compiler-error
"Misplaced declaration."
))
(
compiler-error
"Misplaced declaration."
))
;;; COMPILER-OPTION-BIND
;;;
(
def-ir1-translator
compiler-option-bind
((
bindings
&body
body
)
start
cont
)
"Compiler-Option-Bind ({(Name Value-Form)}*) Body-Form*
Establish the specified compiler options for the (lexical) duration of
the body. The Value-Forms are evaluated at compile time."
(
let
((
*lexical-environment*
(
make-lexenv
:options
(
mapcar
#'
(
lambda
(
binding
)
(
unless
(
and
(
listp
binding
)
(
cdr
binding
)
(
listp
(
cdr
binding
))
(
null
(
cddr
binding
)))
(
compiler-error
"Bogus binding for ~
COMPILER-OPTION-BIND: ~S"
binding
))
(
cons
(
car
binding
)
(
eval
(
cadr
binding
))))
bindings
))))
(
ir1-convert-progn-body
start
cont
body
)))
;;;; %Primitive:
;;;; %Primitive:
;;;
;;;
...
...
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