Skip to content

Commit

Permalink
0.7.5.18:
Browse files Browse the repository at this point in the history
	Get the NAME initarg for UNDEFINED-FUNCTION right (patch CSR
		"PPC and undefined functions" sbcl-devel 2002-07-17)
  • Loading branch information
csrhodes committed Jul 18, 2002
1 parent 503a50f commit 1a66c01
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/runtime/ppc-assem.S
Expand Up @@ -347,10 +347,9 @@ lra:

GFUNCDEF(xundefined_tramp)
.globl undefined_tramp
.byte 0,0,0,SIMPLE_FUN_HEADER_WIDETAG /* type_FunctionHeader */

.byte 0,0,0,SIMPLE_FUN_HEADER_WIDETAG
.byte 18<<2
undefined_tramp:
undefined_tramp:
.byte 0,0,24
.long undefined_tramp
.long NIL
Expand All @@ -360,7 +359,7 @@ undefined_tramp:
twllei reg_ZERO,trap_Cerror
.byte 4
.byte UNDEFINED_FUN_ERROR
.byte 254, 140, 2 /* 140? sparc says sc_descriptorReg */
.byte 254, sc_DescriptorReg+0x40, 1 /* 140? sparc says sc_descriptorReg */
.align 2
1: lwz reg_CODE,FDEFN_RAW_ADDR_OFFSET(reg_FDEFN)
la reg_LIP,SIMPLE_FUN_CODE_OFFSET(reg_CODE)
Expand Down
7 changes: 7 additions & 0 deletions tests/compiler.pure.lisp
Expand Up @@ -140,3 +140,10 @@
;;; bug caught and fixed by Raymond Toy cmucl-imp 2002-07-10: &REST
;;; variable is not optional.
(assert (null (ignore-errors (eval '(funcall (lambda (&rest) 12))))))

;;; on the PPC, we got the magic numbers in undefined_tramp wrong for
;;; a while; fixed by CSR 2002-07-18
(multiple-value-bind (value error)
(ignore-errors (some-undefined-function))
(assert (null value))
(assert (eq (cell-error-name error) 'some-undefined-function)))
2 changes: 1 addition & 1 deletion version.lisp-expr
Expand Up @@ -18,4 +18,4 @@
;;; for internal versions, especially for internal versions off the
;;; main CVS branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)

"0.7.5.17"
"0.7.5.18"

0 comments on commit 1a66c01

Please sign in to comment.