Remove -Wa,-Av9a hack from <sys.mk> and relegate it to the places that need

it (kernel and libc).

The current version of the gas assembler in the tree (2.11.2) already
defaults to generating object files for "-Av9 -64", supporting V9
instructions in ELF64 object format.  "-Av9a" is only needed for specific
parts of the NetBSD base sources, and not for all third-party code.
This commit is contained in:
tv 2001-12-19 21:17:59 +00:00
parent caacefb033
commit 26375a1710
2 changed files with 5 additions and 5 deletions

View File

@ -1,10 +1,13 @@
# $NetBSD: Makefile.inc,v 1.1 1998/09/11 04:56:19 eeh Exp $
# $NetBSD: Makefile.inc,v 1.2 2001/12/19 21:17:59 tv Exp $
KMINCLUDES= arch/sparc64/SYS.h
KMSRCS= bzero.S ffs.S strlen.S htonl.S htons.S \
ntohl.S ntohs.S divrem.m4 \
_setjmp.S mul.S saveregs.S setjmp.S umul.S
# Some assembler files use v9a extensions.
AFLAGS+= -Wa,-Av9a
# `source' files built from m4 source
# the name `div.o' is taken for the ANSI C `div' function, hence sdiv here
SRCS+= rem.S sdiv.S udiv.S urem.S

View File

@ -1,4 +1,4 @@
# $NetBSD: sys.mk,v 1.62 2001/09/17 12:28:14 mycroft Exp $
# $NetBSD: sys.mk,v 1.63 2001/12/19 21:17:59 tv Exp $
# @(#)sys.mk 8.2 (Berkeley) 3/21/94
unix?= We run NetBSD.
@ -14,9 +14,6 @@ RANLIB?= ranlib
AS?= as
AFLAGS?=
.if ${MACHINE_ARCH} == "sparc64"
AFLAGS+= -Wa,-Av9a
.endif
COMPILE.s?= ${CC} ${AFLAGS} -c
LINK.s?= ${CC} ${AFLAGS} ${LDFLAGS}
COMPILE.S?= ${CC} ${AFLAGS} ${CPPFLAGS} -c -traditional-cpp