Include the file handle in generated names even if there is no
authorTaylor R. Campbell <net/mumble/campbell>
Wed, 17 Sep 2008 06:41:43 +0000 (06:41 +0000)
committerTaylor R. Campbell <net/mumble/campbell>
Wed, 17 Sep 2008 06:41:43 +0000 (06:41 +0000)
debugging output that needs to match.

v7/src/compiler/machines/C/cout.scm

index f09d42b727c3aa6f534d83b2a951190ff1af642b..8698b9a0afa6c05a25a1e870bea84add0ac12722 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: cout.scm,v 1.47 2008/09/10 19:32:48 riastradh Exp $
+$Id: cout.scm,v 1.48 2008/09/17 06:41:43 riastradh Exp $
 
 Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
     1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
@@ -122,15 +122,17 @@ USA.
             (if (or *disable-nonces?* (and handle? top-level?))
                 ""
                 (string-append "_" nonce))))
-       (if info-output-pathname
-           (string-append (let ((name (default-file-handle)))
-                            (if handle?
-                                (C-quotify-string name)
-                                (canonicalize-label-name name)))
-                          (if top-level?
-                              (string-append midfix nsuffix)
-                              (string-append "_" default suffix)))
-           (string-append default suffix nsuffix))))
+       (string-append
+        (let ((name (default-file-handle)))
+          (if handle?
+              (C-quotify-string name)
+              (canonicalize-label-name name)))
+        (cond ((not info-output-pathname)
+               (string-append default suffix nsuffix))
+              (top-level?
+               (string-append midfix nsuffix))
+              (else
+               (string-append "_" default suffix))))))
 
     (define (subroutine-information)
       (let*/mv (((decls-1 code-1) (subroutine-information-1))