From d7558fc1baca03915a7314bc239affc0a9ff3b33 Mon Sep 17 00:00:00 2001 From: wlott <wlott> Date: Tue, 15 Dec 1992 19:45:07 +0000 Subject: [PATCH] Put the eval-when back around the (declaim (optimize (safety 1))) so that we can cold load defstruct. And put in a comment as to why it is there. --- code/defstruct.lisp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/code/defstruct.lisp b/code/defstruct.lisp index 0e4574fb5..a5dea3dfb 100644 --- a/code/defstruct.lisp +++ b/code/defstruct.lisp @@ -7,7 +7,7 @@ ;;; Scott Fahlman or slisp-group@cs.cmu.edu. ;;; (ext:file-comment - "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/defstruct.lisp,v 1.36 1992/12/15 16:08:46 wlott Exp $") + "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/defstruct.lisp,v 1.37 1992/12/15 19:45:07 wlott Exp $") ;;; ;;; ********************************************************************** ;;; @@ -22,8 +22,10 @@ (in-package :c) ;;; Always compile safe. This code isn't very careful about protecting itself. -;;; -(declaim (optimize (safety 1))) +;;; Note: we only do this at compile time because defstruct gets cold-loaded +;;; before enough stuff to handle the declaim has been set up. +(eval-when (compile) + (declaim (optimize (safety 1)))) ;;;; Structure frobbing primitives. -- GitLab