Subject: toolchain/17314: Add new toolchain support for ns32k
To: None <gnats-bugs@gnats.netbsd.org>
From: Ian Dall <Ian.Dall@dsto.defence.gov.au>
List: netbsd-bugs
Date: 06/19/2002 17:33:53
>Number:         17314
>Category:       toolchain
>Synopsis:       Add new toolchain support for ns32k
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 19 01:12:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Ian Dall
>Release:        NetBSD 1.5ZC
>Organization:
private
>Environment:
	
	
System: NetBSD gateway.beware.dropbear.id.au 1.5ZC NetBSD 1.5ZC (SIBYL) #2: Sat Jun 15 00:22:45 CST 2002 ian@sibyl.beware.dropbear.id.au:/usr1/local/src/netbsd/src/sys/arch/pc532/compile/SIBYL pc532
Architecture: ns32k
Machine: pc532
>Description:
	
The pc532 is currently unsupported for the new toolchain.
>How-To-Repeat:
	
>Fix:
	

The following patch:

o fixes build.sh to recognize ns32k as a valid
o make building the old gas/ld conditional on USE_NEW_TOOLCHAIN


Index: netbsd/src/build.sh
diff -c netbsd/src/build.sh:1.1.1.8 netbsd/src/build.sh:1.4
*** netbsd/src/build.sh:1.1.1.8	Wed Jun 12 11:46:22 2002
--- netbsd/src/build.sh	Wed Jun 19 00:48:51 2002
***************
*** 58,64 ****
  validatearch () {
  	# Ensure that the MACHINE_ARCH exists (and is supported by build.sh).
  	case $MACHINE_ARCH in
! 		alpha|arm|armeb|i386|m68000|m68k|mipse[bl]|ns32k|powerpc|sh3e[bl]|sparc|sparc64|vax|x86_64)
  			;;
  
  		*)	bomb "unknown target MACHINE_ARCH: $MACHINE_ARCH";;
--- 60,66 ----
  validatearch () {
  	# Ensure that the MACHINE_ARCH exists (and is supported by build.sh).
  	case $MACHINE_ARCH in
! 		alpha|arm|armeb|i386|m68000|m68k|mipse[bl]|ns32k|powerpc|sh3e[bl]|sparc|sparc64|vax|x86_64|ns32k)
  			;;
  
  		*)	bomb "unknown target MACHINE_ARCH: $MACHINE_ARCH";;
Index: netbsd/src/gnu/dist/toolchain/configure.in
diff -c netbsd/src/gnu/dist/toolchain/configure.in:1.1.1.4 netbsd/src/gnu/dist/toolchain/configure.in:1.4
*** netbsd/src/gnu/dist/toolchain/configure.in:1.1.1.4	Wed Jun 12 12:03:27 2002
--- netbsd/src/gnu/dist/toolchain/configure.in	Wed Jun 19 00:50:32 2002
***************
*** 809,815 ****
      fi
      ;;
    ns32k-*-netbsd*)
-     noconfigdirs="$noconfigdirs gas ld"
      ;;
    powerpc-*-aix*)
      # copied from rs6000-*-* entry
--- 809,814 ----
Index: netbsd/src/gnu/usr.bin/Makefile
diff -c netbsd/src/gnu/usr.bin/Makefile:1.1.1.3 netbsd/src/gnu/usr.bin/Makefile:1.2
*** netbsd/src/gnu/usr.bin/Makefile:1.1.1.3	Sat Mar  2 18:27:35 2002
--- netbsd/src/gnu/usr.bin/Makefile	Tue Jun 11 23:15:17 2002
***************
*** 13,19 ****
  SUBDIR+=	sim .WAIT gdb
  
  .if (${MACHINE_ARCH} == "m68k" && ${OBJECT_FMT} != "ELF") ||	\
!     (${MACHINE_ARCH} == "ns32k")
  SUBDIR+=	gas
  .endif
  
--- 13,19 ----
  SUBDIR+=	sim .WAIT gdb
  
  .if (${MACHINE_ARCH} == "m68k" && ${OBJECT_FMT} != "ELF") ||	\
!     (${MACHINE_ARCH} == "ns32k" && ${USE_NEW_TOOLCHAIN} != "yes")
  SUBDIR+=	gas
  .endif
  
***************
*** 21,27 ****
      ((${MACHINE_ARCH} == "arm32") ||	\
       (${MACHINE_ARCH} == "i386") ||	\
       (${MACHINE_ARCH} == "m68k") ||	\
!      (${MACHINE_ARCH} == "ns32k") ||	\
       (${MACHINE_ARCH} == "sparc") ||	\
       (${MACHINE_ARCH} == "vax"))
  SUBDIR+=	ld
--- 21,27 ----
      ((${MACHINE_ARCH} == "arm32") ||	\
       (${MACHINE_ARCH} == "i386") ||	\
       (${MACHINE_ARCH} == "m68k") ||	\
!      (${MACHINE_ARCH} == "ns32k" && ${USE_NEW_TOOLCHAIN} != "yes") ||	\
       (${MACHINE_ARCH} == "sparc") ||	\
       (${MACHINE_ARCH} == "vax"))
  SUBDIR+=	ld
>Release-Note:
>Audit-Trail:
>Unformatted: