Subject: patch for frexp.S in src/lib/libc/gen/Makefile.inc
To: None <phil@cs.wwu.edu>
From: Julian Howard Stacey <stacey@guug.de>
List: port-pc532
Date: 06/21/1994 11:55:12
Phil 
I found patch below necessary for source mirrored Wed. 94 06 15
(ns32k has frexp.S, all other archs have frexp.c )
Would you like to commit it ?
Julian

PS for other folk:
I suggest add this to your environment:
	setenv MACHINE pc532       	
	# MACHINE used in such as:
	#	sys/arch/pc532,
	#	sys/arch/pc532/pc532
	#	sys/lib/libkern/ns32k

	setenv MACHINE_ARCH ns32k
	# MACHINE_ARCH used in such as:
	#	gnu/usr.bin/gcc2/arch/ns32k
	#	lib/libc/gen/Makefile.inc
	#	gnu/usr.bin/gdb/bfd/arch/ns32k
	#	gnu/usr.bin/gdb/gdb/arch/ns32k
	#	gnu/usr.bin/ld/ns32k
	#	lib/csu/ns32k
	#	lib/libc/arch/ns32k

Julian H. Stacey	Munich, Germany		Tel. +49 89 268616  TZ=GMT+1
 <stacey@freefall.cdrom.com>		California, forwarded.
 <julian@pcsbst.pcs.com>		Munich, Fridays.
 <jhs@reseq.e-technik.tu-muenchen.de>	Cease Use.
 <stacey@guug.de>			Cease Use, Expires 30th June '94.

======
*** /usr/src/lib/libc/gen/Makefile.inc.orig	Thu Jan  1 06:04:44 1970
--- /usr/src/lib/libc/gen/Makefile.inc	Thu Jan  1 06:08:52 1970
***************
*** 7,13 ****
  SRCS+=	alarm.c assert.c clock.c confstr.c ctermid.c ctime.c ctype_.c \
  	daemon.c devname.c difftime.c \
  	directory.c disklabel.c err.c errlst.c errno.c exec.c fnmatch.c \
! 	frexp.c fstab.c fts.c \
  	getbsize.c getcap.c getcwd.c getdomainname.c getgrent.c getgrouplist.c \
  	gethostname.c getloadavg.c getlogin.c getmntinfo.c getnetgrent.c \
  	getpagesize.c getpass.c getpwent.c getsubopt.c getttyent.c \
--- 7,13 ----
  SRCS+=	alarm.c assert.c clock.c confstr.c ctermid.c ctime.c ctype_.c \
  	daemon.c devname.c difftime.c \
  	directory.c disklabel.c err.c errlst.c errno.c exec.c fnmatch.c \
! 	fstab.c fts.c \
  	getbsize.c getcap.c getcwd.c getdomainname.c getgrent.c getgrouplist.c \
  	gethostname.c getloadavg.c getlogin.c getmntinfo.c getnetgrent.c \
  	getpagesize.c getpass.c getpwent.c getsubopt.c getttyent.c \
***************
*** 26,52 ****
  	waitpid.c
  
  .if   (${MACHINE_ARCH} == "m68k")
! SRCS+=	_setjmp.S alloca.S fabs.S ldexp.S modf.S setjmp.S
  SRCS+=	adddf3.S addsf3.S ashlsi3.S ashrsi3.S cmpdf2.S cmpsf2.S divdf3.S \
  	divsf3.S divsi3.S extendsfdf2.S fixdfsi.S fixunsdfsi.S \
  	floatsidf.S lshlsi3.S lshrsi3.S modsi3.S muldf3.S mulsf3.S mulsi3.S \
  	negdf2.S negsf2.S saveregs.c subdf3.S subsf3.S truncdfsf2.S udivsi3.S \
  	umodsi3.S umulsi3.S
  .elif (${MACHINE_ARCH} == "i386")
! SRCS+=	_setjmp.S alloca.S fabs.S ldexp.c modf.S setjmp.S sigsetjmp.S
  SRCS+=	divsi3.S fixdfsi.S fixunsdfsi.S udivsi3.S
  .elif (${MACHINE_ARCH} == "ns32k")
! SRCS+=	__main.c _setjmp.S alloca.S fabs.S frexp.S infinity.c isinf.c
  SRCS+=  ldexp.S modf.S setjmp.S
  .elif (${MACHINE_ARCH} == "tahoe")
  CFLAGS+=-I/sys
! SRCS+=	_setjmp.S alloca.S fabs.S ldexp.S modf.S setjmp.S
  SRCS+=	udiv.S urem.S
  .elif (${MACHINE_ARCH} == "vax")
! SRCS+=	_setjmp.S alloca.S fabs.S ldexp.S modf.S setjmp.S
  SRCS+=	udiv.S urem.S
  .elif (${MACHINE_ARCH} == "sparc")
! SRCS+=	_setjmp.S fabs.S frexp.c infinity.c isnan.c ldexp.c modf.S
  SRCS+=	fixunsdfsi.S mul.S umul.S saveregs.S setjmp.S
  .endif
  
--- 26,52 ----
  	waitpid.c
  
  .if   (${MACHINE_ARCH} == "m68k")
! SRCS+=	_setjmp.S alloca.S fabs.S ldexp.S modf.S setjmp.S frexp.c
  SRCS+=	adddf3.S addsf3.S ashlsi3.S ashrsi3.S cmpdf2.S cmpsf2.S divdf3.S \
  	divsf3.S divsi3.S extendsfdf2.S fixdfsi.S fixunsdfsi.S \
  	floatsidf.S lshlsi3.S lshrsi3.S modsi3.S muldf3.S mulsf3.S mulsi3.S \
  	negdf2.S negsf2.S saveregs.c subdf3.S subsf3.S truncdfsf2.S udivsi3.S \
  	umodsi3.S umulsi3.S
  .elif (${MACHINE_ARCH} == "i386")
! SRCS+=	_setjmp.S alloca.S fabs.S ldexp.c modf.S setjmp.S sigsetjmp.S frexp.c
  SRCS+=	divsi3.S fixdfsi.S fixunsdfsi.S udivsi3.S
  .elif (${MACHINE_ARCH} == "ns32k")
! SRCS+=	__main.c _setjmp.S alloca.S fabs.S frexp.S infinity.c isinf.c frexp.S
  SRCS+=  ldexp.S modf.S setjmp.S
  .elif (${MACHINE_ARCH} == "tahoe")
  CFLAGS+=-I/sys
! SRCS+=	_setjmp.S alloca.S fabs.S ldexp.S modf.S setjmp.S frexp.c
  SRCS+=	udiv.S urem.S
  .elif (${MACHINE_ARCH} == "vax")
! SRCS+=	_setjmp.S alloca.S fabs.S ldexp.S modf.S setjmp.S frexp.c
  SRCS+=	udiv.S urem.S
  .elif (${MACHINE_ARCH} == "sparc")
! SRCS+=	_setjmp.S fabs.S frexp.c infinity.c isnan.c ldexp.c modf.S frexp.c
  SRCS+=	fixunsdfsi.S mul.S umul.S saveregs.S setjmp.S
  .endif
  
======

------------------------------------------------------------------------------