NetBSD Problem Report #1177

From gnats  Thu Jun 29 15:28:52 1995
Received: from yikes.ccrc.wustl.edu (root@yikes.ccrc.wustl.edu [128.252.169.57]) by sun-lamp.pc.cs.cmu.edu (8.6.11/8.6.10) with ESMTP id PAA13741 for <gnats-bugs@gnats.netbsd.org>; Thu, 29 Jun 1995 15:28:48 -0400
Message-Id: <199506291852.NAA14789@yikes.ccrc.wustl.edu>
Date: Thu, 29 Jun 1995 13:52:00 -0500
From: Chuck Cranor <chuck@yikes.ccrc.wustl.edu>
Reply-To: chuck@maria.wustl.edu
To: gnats-bugs@gnats.netbsd.org
Subject: stray "'" in libc/arch/m68k/string/bcopy.S breaks m68k mkdep
X-Send-Pr-Version: 3.2

>Number:         1177
>Category:       lib
>Synopsis:       stray "'" in libc/arch/m68k/string/bcopy.S breaks m68k mkdep
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 29 15:35:00 +0000 1995
>Closed-Date:    Mon Jul 03 18:25:11 +0000 1995
>Last-Modified:  Tue Sep 04 23:55:17 +0000 2001
>Originator:     Chuck Cranor
>Release:        NetBSD-current source date Jun 29th
>Organization:
Washington University
>Environment:
System: NetBSD vme147.ccrc.wustl.edu 1.0A NetBSD 1.0A (VME147) #13: Thu Jun  8 20:35:04 CDT 1995     chuck@vme147.ccrc.wustl.edu:/usr/src/sys/arch/mvme68k/compile/VME147 mvme68k
[but applies to any m68k system...]

>Description:
	there is an unmatched "'" in libc/arch/m68k/string/bcopy.S which
	causes "gcc -M" to complain.

>How-To-Repeat:

run "make depend" in /usr/src/lib/libc and get:

...
k/sys/sigprocmask.S /usr/src/lib/libc/arch/m68k/sys/sigreturn.S /usr/src/lib/libc/arch/m68k/sys/sigsuspend.S /usr/src/lib/libc/arch/m68k/sys/syscall.S";  if [ "$files" != " " ]; then  mkdep -a  -DNLS -DYP -DLIBC_SCCS -DSYSLIBC_SCCS -I/usr/src/lib/libc/include -D__DBINTERFACE_PRIVATE -DPOSIX_MISTAKE -DFLOATING_POINT  -I/usr/src/lib/libc/arch/m68k $files;  fi
/usr/src/lib/libc/arch/m68k/string/bcopy.S:65: unterminated character constant
/usr/src/lib/libc/arch/m68k/string/bcopy.S:69: `#else' not within a conditional
/usr/src/lib/libc/arch/m68k/string/bcopy.S:72: unbalanced `#endif'
In file included from /usr/src/lib/libc/arch/m68k/string/memcpy.S:2:
/usr/src/lib/libc/arch/m68k/string/bcopy.S:65: unterminated character constant
/usr/src/lib/libc/arch/m68k/string/bcopy.S:69: `#else' not within a conditional
/usr/src/lib/libc/arch/m68k/string/bcopy.S:72: unbalanced `#endif'
In file included from /usr/src/lib/libc/arch/m68k/string/memmove.S:2:
/usr/src/lib/libc/arch/m68k/string/bcopy.S:65: unterminated character constant
/usr/src/lib/libc/arch/m68k/string/bcopy.S:69: `#else' not within a conditional
/usr/src/lib/libc/arch/m68k/string/bcopy.S:72: unbalanced `#endif'

>Fix:
apply the following patch:

*** /tmp/bcopy.S	Thu Jun 29 13:57:16 1995
--- /usr/src/lib/libc/arch/m68k/string/bcopy.S	Thu Jun 29 13:57:35 1995
***************
*** 62,68 ****
  #endif
  #endif
  	movl	sp@(12),d1		| check count
! 	beq	bcdone			| == 0, don't do anything
  #if defined(MEMCOPY) || defined(MEMMOVE)
  	movl	sp@(4),a1		| dest address
  	movl	sp@(8),a0		| src address
--- 62,68 ----
  #endif
  #endif
  	movl	sp@(12),d1		| check count
! 	beq	bcdone			| == 0, do not do anything
  #if defined(MEMCOPY) || defined(MEMMOVE)
  	movl	sp@(4),a1		| dest address
  	movl	sp@(8),a0		| src address
>Release-Note:
>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: jtc
State-Changed-When: Mon Jul  3 18:25:11 1995
State-Changed-Why:
Fixed.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.