Don't signal a note on NOTINLINE non-toplevel functions.
authorStas Boukarev <stassats@gmail.com>
Sat, 24 Mar 2012 13:28:30 +0000 (17:28 +0400)
committerStas Boukarev <stassats@gmail.com>
Sat, 24 Mar 2012 13:28:30 +0000 (17:28 +0400)
When a function was declared NOTINLINE, and later defined not at the
toplevel, SBCL signaled a note saying that it can't inline it.

Fixes lp#963530.

src/code/defboot.lisp

index 385402e..778a7ab 100644 (file)
@@ -181,8 +181,10 @@ evaluated as a PROGN."
            (lambda `(lambda ,@lambda-guts))
            #-sb-xc-host
            (named-lambda `(named-lambda ,name ,@lambda-guts))
+           (inline-type (inline-fun-name-p name))
            (inline-lambda
-            (when (inline-fun-name-p name)
+            (when (and inline-type
+                       (neq inline-type :notinline))
               ;; we want to attempt to inline, so complain if we can't
               (or (sb!c:maybe-inline-syntactic-closure lambda env)
                   (progn