Subject: port-m68k/5287: Change implicit types to satisfy egcs
To: None <gnats-bugs@gnats.netbsd.org>
From: Erik Bertelsen <erik@q610.ebe.uni-c.dk>
List: netbsd-bugs
Date: 04/12/1998 18:21:07
>Number:         5287
>Category:       port-m68k
>Synopsis:       Change implicit types to satisfy egcs
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 12 09:20:01 1998
>Last-Modified:
>Originator:     Erik Bertelsen
>Organization:
	
>Release:        NetBSD-current 11 Apr 1998
>Environment:
	
System: NetBSD q610.ebe.uni-c.dk 1.3E NetBSD 1.3E (Q610) #132: Sun Apr 12 18:00:42 MEST 1998 erik@q610.ebe.uni-c.dk:/home/src/sys/arch/mac68k/compile/Q610 mac68k


>Description:
	When compiling a mac68k kernel with egcs, compilation warnings
	are issued within arch/m68k for a couple of variables declared
	without a type, therefore defaulting to int.
>How-To-Repeat:
	
>Fix:

Index: m68k/db_trace.c
===================================================================
RCS file: /home/cvs-base/src/sys/arch/m68k/m68k/db_trace.c,v
retrieving revision 1.1.1.4
diff -c -r1.1.1.4 db_trace.c
*** db_trace.c	1997/02/08 10:35:00	1.1.1.4
--- db_trace.c	1998/04/12 15:57:42
***************
*** 267,274 ****
  	 * an addq or addl or addw to sp just after we return to pop off our
  	 * arguments.  Find that instruction and extract the value.
  	 */
! 	register	instruc;
! 	register	val;
  	db_addr_t	addr, nextword;
  	label_t		db_jmpbuf;
  	label_t		*savejmp;
--- 267,274 ----
  	 * an addq or addl or addw to sp just after we return to pop off our
  	 * arguments.  Find that instruction and extract the value.
  	 */
! 	int		instruc;
! 	int	 	val;
  	db_addr_t	addr, nextword;
  	label_t		db_jmpbuf;
  	label_t		*savejmp;

regards
Erik Bertelsen

PS: a lot of cleaning of register declarations could be done in arch/m68k.

>Audit-Trail:
>Unformatted: