X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fmacros.lisp;h=be5100edb161abb1860e6a55586d725802c402cd;hb=844ecf93b004399bf575e700d8b2865edd517c08;hp=48af2fb0f814f4623d661c7e125b2790716efec0;hpb=92d1243a970f638b286c3689df16b32c3049cfe0;p=sbcl.git diff --git a/src/compiler/macros.lisp b/src/compiler/macros.lisp index 48af2fb..be5100e 100644 --- a/src/compiler/macros.lisp +++ b/src/compiler/macros.lisp @@ -469,12 +469,16 @@ ;;; the function might have. (defmacro defknown (name arg-types result-type &optional (attributes '(any)) &body keys) + #-sb-xc-host + (when (member 'unsafe attributes) + (style-warn "Ignoring legacy attribute UNSAFE. Replaced by its inverse: DX-SAFE.") + (setf attributes (remove 'unsafe attributes))) (when (and (intersection attributes '(any call unwind)) (intersection attributes '(movable))) (error "function cannot have both good and bad attributes: ~S" attributes)) (when (member 'any attributes) - (setq attributes (union '(call unsafe unwind) attributes))) + (setq attributes (union '(call unwind) attributes))) (when (member 'flushable attributes) (pushnew 'unsafely-flushable attributes))