X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fmacros.lisp;h=700f7e4f55f46ff8e1d85c845e9890be9bfb6361;hb=012b1558b80a988901569412ca79d544ed30ff6a;hp=015768c573fa848fef55ac6a515b1fe0ab12fd30;hpb=8bcffb407835ff680d5ee2ba1f7ce97839bbae3e;p=sbcl.git diff --git a/src/compiler/macros.lisp b/src/compiler/macros.lisp index 015768c..700f7e4 100644 --- a/src/compiler/macros.lisp +++ b/src/compiler/macros.lisp @@ -193,6 +193,7 @@ translations-name attribute-names get-setf-expansion-fun-name) + (declare (ignore attribute-names)) `(define-setf-expander ,test-name (place &rest attributes &environment env) "Automagically generated boolean attribute setter. See @@ -456,7 +457,7 @@ ;;; keywords specify the initial values for various optimizers that ;;; the function might have. (defmacro defknown (name arg-types result-type &optional (attributes '(any)) - &rest keys) + &body keys) (when (and (intersection attributes '(any call unwind)) (intersection attributes '(movable))) (error "function cannot have both good and bad attributes: ~S" attributes)) @@ -559,17 +560,17 @@ ;;; Iterate over the uses of LVAR, binding NODE to each one ;;; successively. -;;; -;;; XXX Could change it not to replicate the code someday perhaps... (defmacro do-uses ((node-var lvar &optional result) &body body) (with-unique-names (uses) `(let ((,uses (lvar-uses ,lvar))) - (if (listp ,uses) - (dolist (,node-var ,uses ,result) - ,@body) - (block nil - (let ((,node-var ,uses)) - ,@body)))))) + (block nil + (flet ((do-1-use (,node-var) + ,@body)) + (if (listp ,uses) + (dolist (node ,uses) + (do-1-use node)) + (do-1-use ,uses))) + ,result)))) ;;; Iterate over the nodes in BLOCK, binding NODE-VAR to the each node ;;; and LVAR-VAR to the node's LVAR. The only keyword option is