From 097716ba70122b165d961f0197e48ec75ee455d8 Mon Sep 17 00:00:00 2001 From: dtc <dtc> Date: Tue, 18 Feb 1997 01:35:47 +0000 Subject: [PATCH] When *coalesce-constants* is off, still need to eq-save-object for lists, else dump-circularities breaks. This trouble isn't tickled in normal use, but is handy if you're using dump to save data to a FASL file. --- compiler/dump.lisp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/compiler/dump.lisp b/compiler/dump.lisp index 0c11b3671..31e788611 100644 --- a/compiler/dump.lisp +++ b/compiler/dump.lisp @@ -5,7 +5,7 @@ ;;; Carnegie Mellon University, and has been placed in the public domain. ;;; (ext:file-comment - "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/dump.lisp,v 1.62 1994/10/31 04:27:28 ram Exp $") + "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/dump.lisp,v 1.63 1997/02/18 01:35:47 dtc Exp $") ;;; ;;; ********************************************************************** ;;; @@ -877,11 +877,13 @@ (typecase x (symbol (dump-symbol x file)) (list - (if *coalesce-constants* - (unless (equal-check-table x file) - (dump-list x file) - (equal-save-object x file)) - (dump-list x file))) + (cond (*coalesce-constants* + (unless (equal-check-table x file) + (dump-list x file) + (equal-save-object x file))) + (t + (dump-list x file) + (eq-save-object x file)))) (layout (dump-layout x file) (eq-save-object x file)) -- GitLab