0.9.5.23:
authorJuho Snellman <jsnell@iki.fi>
Wed, 5 Oct 2005 20:08:41 +0000 (20:08 +0000)
committerJuho Snellman <jsnell@iki.fi>
Wed, 5 Oct 2005 20:08:41 +0000 (20:08 +0000)
        Add the neccessary *COMPILER-ERROR-CONTEXT* bindings to allow
        Slime compiler note annotation to work on CONSTANT-MODIFIED
        warnings.

src/compiler/ir1opt.lisp
version.lisp-expr

index 4944949..7e83244 100644 (file)
            (when fun
              (let ((destroyed-constant-args (funcall fun args)))
                (when destroyed-constant-args
-                 (warn 'constant-modified
-                       :fun-name (lvar-fun-name
-                                  (basic-combination-fun node)))
-                 (setf (basic-combination-kind node) :error)
-                 (return-from ir1-optimize-combination)))))
+                 (let ((*compiler-error-context* node))
+                   (warn 'constant-modified
+                         :fun-name (lvar-fun-name
+                                    (basic-combination-fun node)))
+                   (setf (basic-combination-kind node) :error)
+                   (return-from ir1-optimize-combination))))))
          (let ((fun (fun-info-derive-type info)))
            (when fun
              (let ((res (funcall fun node)))
          (when fun
            (let ((destroyed-constant-args (funcall fun args)))
              (when destroyed-constant-args
-               (warn 'constant-modified
-                     :fun-name (lvar-fun-name
-                                (basic-combination-fun node)))
+               (let ((*compiler-error-context* node))
+                 (warn 'constant-modified
+                       :fun-name (lvar-fun-name
+                                  (basic-combination-fun node)))
                  (setf (basic-combination-kind node) :error)
-                 (return-from ir1-optimize-combination)))))
+                 (return-from ir1-optimize-combination))))))
 
        (let ((attr (fun-info-attributes info)))
          (when (and (ir1-attributep attr foldable)
index d9c79df..c0cf99e 100644 (file)
@@ -17,4 +17,4 @@
 ;;; checkins which aren't released. (And occasionally for internal
 ;;; versions, especially for internal versions off the main CVS
 ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"0.9.5.22"
+"0.9.5.23"