X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fpolicy.lisp;h=d5fe59d1608c2b8917a0a8fbcca781b1eceb4ea7;hb=2f492b2a39b1361e1dd97d5243bc47238b98ca8f;hp=26bf0ce604ed113e2c571c1b29dc9deaa3776301;hpb=c3c5e3bac6e4ca8e9d1c6960590d88e16254cfea;p=sbcl.git diff --git a/src/compiler/policy.lisp b/src/compiler/policy.lisp index 26bf0ce..d5fe59d 100644 --- a/src/compiler/policy.lisp +++ b/src/compiler/policy.lisp @@ -37,7 +37,7 @@ This is intended to be used interactively, to facilitate recompiling large bodies of code with eg. a known minimum safety. EXPERIMENTAL INTERFACE: Subject to change." - (declare (policy-quality min)) + (declare (type policy-quality min)) (when quality (aver (policy-quality-name-p quality)) (if (zerop min) @@ -72,6 +72,16 @@ EXPERIMENTAL INTERFACE: Subject to change." (or (memq x *policy-qualities*) (assq x *policy-dependent-qualities*))) +;;; Is it deprecated? +(defun policy-quality-deprecation-warning (quality spec) + (when (member quality '(stack-allocate-dynamic-extent stack-allocate-vector + stack-allocate-value-cells)) + (make-instance 'simple-reference-warning + :format-control "~@" + :format-arguments (list quality spec) + :references (list '(:sbcl :variable *stack-allocate-dynamic-extent*) + '(:sbcl :node "Dynamic-extent allocation"))))) + ;;; *POLICY* holds the current global compiler policy information, as ;;; an alist mapping from optimization quality name to quality value. ;;; Inside the scope of declarations, new entries are added at the