projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0.7.12.10:
[sbcl.git]
/
src
/
compiler
/
proclaim.lisp
diff --git
a/src/compiler/proclaim.lisp
b/src/compiler/proclaim.lisp
index
0a62a5c
..
0a7dcb6
100644
(file)
--- a/
src/compiler/proclaim.lisp
+++ b/
src/compiler/proclaim.lisp
@@
-48,11
+48,11
@@
(compiler-warn "ignoring unknown optimization quality ~
~S in ~S"
quality spec))
(compiler-warn "ignoring unknown optimization quality ~
~S in ~S"
quality spec))
- ((not (and (typep raw-value 'real) (<= 0 raw-value 3)))
+ ((not (typep raw-value 'policy-quality))
(compiler-warn "ignoring bad optimization value ~S in ~S"
raw-value spec))
(t
(compiler-warn "ignoring bad optimization value ~S in ~S"
raw-value spec))
(t
- (push (cons quality (rational raw-value))
+ (push (cons quality raw-value)
result)))))
;; Add any nonredundant entries from old POLICY.
(dolist (old-entry policy)
result)))))
;; Add any nonredundant entries from old POLICY.
(dolist (old-entry policy)
@@
-123,8
+123,8
@@
;; when we have to ignore a PROCLAIM because the type system is
;; uninitialized.
(when *type-system-initialized*
;; when we have to ignore a PROCLAIM because the type system is
;; uninitialized.
(when *type-system-initialized*
- (let ((type (specifier-type (first args))))
- (unless (csubtypep type (specifier-type 'function))
+ (let ((ctype (specifier-type (first args))))
+ (unless (csubtypep ctype (specifier-type 'function))
(error "not a function type: ~S" (first args)))
(dolist (name (rest args))
(error "not a function type: ~S" (first args)))
(dolist (name (rest args))
@@
-142,13
+142,13
@@
#|
(when (eq (info :function :where-from name) :declared)
(let ((old-type (info :function :type name)))
#|
(when (eq (info :function :where-from name) :declared)
(let ((old-type (info :function :type name)))
- (when (type/= type old-type)
+ (when (type/= ctype old-type)
(style-warn
"new FTYPE proclamation~@
~S~@
for ~S does not match old FTYPE proclamation~@
~S"
(style-warn
"new FTYPE proclamation~@
~S~@
for ~S does not match old FTYPE proclamation~@
~S"
- (list type name old-type)))))
+ (list ctype name old-type)))))
|#
;; Now references to this function shouldn't be warned
|#
;; Now references to this function shouldn't be warned
@@
-161,7
+161,7
@@
(note-name-defined name :function)
;; the actual type declaration
(note-name-defined name :function)
;; the actual type declaration
- (setf (info :function :type name) type
+ (setf (info :function :type name) ctype
(info :function :where-from name) :declared)))))
(freeze-type
(dolist (type args)
(info :function :where-from name) :declared)))))
(freeze-type
(dolist (type args)