X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fir1final.lisp;h=98548ee7172f011ea3b4a8e0573265aa6454eb54;hb=4fc9d21ae1d8a6a2f8ff70f589d5da103203de13;hp=dfd2834641a02dd13d3ad06c443d8f48846ba938;hpb=6df93cdd503b613151de9c82982259b558465915;p=sbcl.git diff --git a/src/compiler/ir1final.lisp b/src/compiler/ir1final.lisp index dfd2834..98548ee 100644 --- a/src/compiler/ir1final.lisp +++ b/src/compiler/ir1final.lisp @@ -27,13 +27,7 @@ (note (transform-note (car failure)))) (cond ((consp what) - ;; FIXME: This sometimes gets too long for a single line, e.g. - ;; "note: unable to optimize away possible call to FDEFINITION at runtime due to type uncertainty:" - ;; It would be nice to pretty-print it somehow, but how? - ;; ~@<..~:@> adds ~_ directives to the spaces which are in - ;; the format string, but a lot of the spaces where we'd want - ;; to break are in the included ~A string instead. - (compiler-note "unable to ~A because:~%~6T~?" + (compiler-note "~@" note (first what) (rest what))) ((valid-function-use node what :argument-test #'types-intersect @@ -45,10 +39,17 @@ (valid-function-use node what :warning-function #'frob :error-function #'frob)) - - (compiler-note "unable to ~A due to type uncertainty:~@ - ~{~6T~?~^~&~}" - note (messages)))))))))) + (compiler-note "~@" + note (messages)))) + ;; As best I can guess, it's OK to fall off the end here + ;; because if it's not a VALID-FUNCTION-USE, the user + ;; doesn't want to hear about it. The things I caught when + ;; I put ERROR "internal error: unexpected FAILURE=~S" here + ;; didn't look like things we need to report. -- WHN 2001-02-07 + )))))) ;;; For each named function with an XEP, note the definition of that ;;; name, and add derived type information to the info environment. We