Fix bug in compiler reference trap restarts: the name will be at the
authorTaylor R. Campbell <net/mumble/campbell>
Sun, 4 Feb 2007 21:55:45 +0000 (21:55 +0000)
committerTaylor R. Campbell <net/mumble/campbell>
Sun, 4 Feb 2007 21:55:45 +0000 (21:55 +0000)
top of the stack, not in the expression register.

v7/src/microcode/cmpint.c

index 2c574acbf010b629edc80f040421d6f0b0b852f5..5cd0ddf74ebd6d9a80f1627ad677d9e371f629c4 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-C-*-
 
-$Id: cmpint.c,v 1.107 2007/01/05 21:19:25 cph Exp $
+$Id: cmpint.c,v 1.108 2007/02/04 21:55:45 riastradh Exp $
 
 Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
     1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
@@ -1817,7 +1817,7 @@ DEFINE_SCHEME_UTILITY_2 (name, return_address_raw, cache_addr_raw)        \
 C_TO_SCHEME long                                                       \
 DEFUN_VOID (restart)                                                   \
 {                                                                      \
-  SCHEME_OBJECT name = exp_register;                                   \
+  SCHEME_OBJECT name = (STACK_POP ());                                 \
   SCHEME_OBJECT environment = (STACK_POP ());                          \
   long code = (c_lookup (environment, name, (&val_register)));         \
   if (code == PRIM_DONE)                                               \