Changeset 12622
- Timestamp:
- 04/18/10 09:26:22 (13 years ago)
- Location:
- trunk/abcl/src/org/armedbear/lisp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abcl/src/org/armedbear/lisp/compile-file.lisp
r12620 r12622 146 146 ,@decls (block ,block-name ,@body))) 147 147 (classfile (next-classfile-name)) 148 ( compilation-failure-pnil)148 (internal-compiler-errors nil) 149 149 (result (with-open-file 150 150 (f classfile … … 155 155 ((internal-compiler-error 156 156 #'(lambda (e) 157 ( setf compilation-failure-p e)157 (push e internal-compiler-errors) 158 158 (continue)))) 159 159 (report-error 160 160 (jvm:compile-defun name expr nil 161 161 classfile f nil))))) 162 (compiled-function (and (not compilation-failure-p) 163 (verify-load classfile)))) 162 (compiled-function (if (not internal-compiler-errors) 163 (verify-load classfile) 164 nil))) 164 165 (declare (ignore result)) 165 166 (cond 166 ((and (not compilation-failure-p)167 ((and (not internal-compiler-errors) 167 168 compiled-function) 168 169 (setf form … … 177 178 ;; FIXME Should be a warning or error of some sort... 178 179 (format *error-output* 179 "; Unable to compile function ~A~%" name) 180 (when compilation-failure-p 181 (format *error-output* 182 "; ~A~%" compilation-failure-p)) 180 "; Unable to compile function ~A. Using interpreted form instead.~%" name) 181 (when internal-compiler-errors 182 (dolist (e internal-compiler-errors) 183 (format *error-output* 184 "; ~A~%" e))) 183 185 (let ((precompiled-function 184 186 (precompiler:precompile-form expr nil -
trunk/abcl/src/org/armedbear/lisp/compiler-error.lisp
r12620 r12622 57 57 58 58 (defun internal-compiler-error (format-control &rest format-arguments) 59 (signal 'internal-compiler-error 60 :format-control format-control 61 :format-arguments format-arguments)) 59 (cerror "Eventually use interpreted form instead" 60 'internal-compiler-error 61 :format-control format-control 62 :format-arguments format-arguments)) 62 63 63 64 (defun compiler-unsupported (format-control &rest format-arguments) -
trunk/abcl/src/org/armedbear/lisp/compiler-pass2.lisp
r12620 r12622 1342 1342 (when instruction-depth 1343 1343 (unless (= (the fixnum instruction-depth) (the fixnum (+ depth instruction-stack))) 1344 ( format t "~&Stack inconsistency at index ~D: found ~S, expected ~S.~%"1345 i instruction-depth (+ depth instruction-stack))1346 (internal-compiler-error "Stack inconsistency detected in ~A."1347 (compiland-name *current-compiland*)))1344 (internal-compiler-error 1345 "Stack inconsistency detected in ~A at index ~D: found ~S, expected ~S." 1346 (compiland-name *current-compiland*) 1347 i instruction-depth (+ depth instruction-stack))) 1348 1348 (return-from walk-code)) 1349 1349 (let ((opcode (instruction-opcode instruction)))
Note: See TracChangeset
for help on using the changeset viewer.