From 115124689ef5e640270f528c6330598bd3b80a76 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Sat, 14 Apr 2007 05:53:17 +0000 Subject: [PATCH] Suppress "loading" and "dumping" messages for compiler. --- v7/src/compiler/base/asstop.scm | 12 ++++++------ v7/src/compiler/base/toplev.scm | 4 ++-- v7/src/sf/toplev.scm | 12 +++++++----- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/v7/src/compiler/base/asstop.scm b/v7/src/compiler/base/asstop.scm index cfc23b5f0..185b07fd9 100644 --- a/v7/src/compiler/base/asstop.scm +++ b/v7/src/compiler/base/asstop.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: asstop.scm,v 1.17 2007/01/05 21:19:20 cph Exp $ +$Id: asstop.scm,v 1.18 2007/04/14 05:52:28 cph Exp $ Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, @@ -35,7 +35,7 @@ USA. (define compiled-output-extension "com") (define (compiler-file-output object pathname) - (fasdump object pathname)) + (fasdump object pathname #t)) (define (compiler-output->procedure scode environment) (scode-eval scode environment)) @@ -278,14 +278,14 @@ USA. ;;; Various ways of dumping an info file (define (compiler:dump-inf-file binf pathname) - (fasdump binf pathname)) + (compiler-file-output binf pathname)) (define (compiler:dump-bif/bsm-files binf pathname) (let ((bif-path (pathname-new-type pathname "bif")) (bsm-path (pathname-new-type pathname "bsm"))) (let ((bsm (split-inf-structure! binf bsm-path))) - (fasdump binf bif-path) - (fasdump bsm bsm-path)))) + (compiler-file-output binf bif-path) + (compiler-file-output bsm bsm-path)))) (define (compiler:dump-bci/bcs-files binf pathname) (let ((bci-path (pathname-new-type pathname "bci")) @@ -306,7 +306,7 @@ USA. (lambda () (call-with-temporary-filename (lambda (temp) - (fasdump object temp #t) + (compiler-file-output object temp) (compress temp path)))))) (define compiler:dump-info-file diff --git a/v7/src/compiler/base/toplev.scm b/v7/src/compiler/base/toplev.scm index 0de85a197..ef7ae7710 100644 --- a/v7/src/compiler/base/toplev.scm +++ b/v7/src/compiler/base/toplev.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: toplev.scm,v 4.71 2007/04/14 03:52:22 cph Exp $ +$Id: toplev.scm,v 4.72 2007/04/14 05:52:53 cph Exp $ Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, @@ -204,7 +204,7 @@ USA. (define (compiler-fasload pathname) (let ((scode - (let ((scode (fasload pathname))) + (let ((scode (fasload pathname #t))) (if (scode/comment? scode) (scode/comment-expression scode) scode)))) diff --git a/v7/src/sf/toplev.scm b/v7/src/sf/toplev.scm index ad1e288c8..67cef9a4f 100644 --- a/v7/src/sf/toplev.scm +++ b/v7/src/sf/toplev.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: toplev.scm,v 4.31 2007/01/05 21:19:29 cph Exp $ +$Id: toplev.scm,v 4.32 2007/04/14 05:53:17 cph Exp $ Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, @@ -147,7 +147,8 @@ USA. ,(decoded-time/second start-date))) (sf/file->scode input-pathname bin-pathname environment declarations)) - bin-pathname))))) + bin-pathname + #t))))) (if sf:noisy? (let ((message (lambda (port) @@ -188,7 +189,7 @@ USA. (let ((pathname (merge-pathnames pathname sf/default-externs-pathname))) (let ((namestring (->namestring pathname))) (if (file-exists? pathname) - (let ((object (fasload pathname)) + (let ((object (fasload pathname #t)) (wrong-version (lambda (version) (warn (string-append @@ -216,14 +217,15 @@ USA. (else (error "Not an externs file:" namestring)))) (begin - (warn "Nonexistent externs file:" namestring) + (warn "Missing externs file:" namestring) (values #f '())))))) (define (write-externs-file pathname externs-block externs) (cond ((not (null? externs)) (fasdump (vector externs-file-tag externs-file-version externs-block externs) - pathname)) + pathname + #t)) ((file-exists? pathname) (delete-file pathname)))) -- 2.25.1