* enhancements
** SBCL can now be built using Clang.
* bug fix: compiler errors when weakening hairy integer types. (lp#913232)
+ * bug fix: don't complain about a too-hairy lexical environment for inlining
+ when the function has never been requested for inlining. (lp#963530)
changes in sbcl-1.0.55 relative to sbcl-1.0.54:
* enhancements to building SBCL using make.sh:
(defun inline-fun-name-p (name)
(or
;; the normal reason for saving the inline expansion
- (info :function :inlinep name)
+ (let ((inlinep (info :function :inlinep name)))
+ (member inlinep '(:inline :maybe-inline)))
;; another reason for saving the inline expansion: If the
;; ANSI-recommended idiom
;; (DECLAIM (INLINE FOO))
(lambda `(lambda ,@lambda-guts))
#-sb-xc-host
(named-lambda `(named-lambda ,name ,@lambda-guts))
- (inline-type (inline-fun-name-p name))
(inline-lambda
- (when (and inline-type
- (neq inline-type :notinline))
+ (when (inline-fun-name-p name)
;; we want to attempt to inline, so complain if we can't
(or (sb!c:maybe-inline-syntactic-closure lambda env)
(progn
EOF
expect_clean_compile $tmpfilename
+cat > $tmpfilename <<EOF
+(in-package :cl-user)
+
+(declaim (notinline foo))
+(let ((i 0)) (defun foo (x) (incf i x)))
+(defun bar (x) (foo x))
+EOF
+fail_on_condition_during_compile sb-ext:compiler-note $tmpfilename
+
# success
exit $EXIT_TEST_WIN