head	1.31;
access;
symbols
	RELENG_8_4:1.31.0.2
	RELENG_9_1_0_RELEASE:1.23.2.2.2.2
	RELENG_9_1:1.23.2.2.0.2
	RELENG_9_1_BP:1.23.2.2
	RELENG_8_3_0_RELEASE:1.19.2.1.8.1
	RELENG_8_3:1.19.2.1.0.8
	RELENG_8_3_BP:1.19.2.1
	RELENG_9_0_0_RELEASE:1.23.2.1.2.1
	RELENG_9_0:1.23.2.1.0.2
	RELENG_9_0_BP:1.23.2.1
	RELENG_9:1.23.0.2
	RELENG_9_BP:1.23
	RELENG_7_4_0_RELEASE:1.18.12.1
	RELENG_8_2_0_RELEASE:1.19.2.1.6.1
	RELENG_7_4:1.18.0.12
	RELENG_7_4_BP:1.18
	RELENG_8_2:1.19.2.1.0.6
	RELENG_8_2_BP:1.19.2.1
	RELENG_8_1_0_RELEASE:1.19.2.1.4.1
	RELENG_8_1:1.19.2.1.0.4
	RELENG_8_1_BP:1.19.2.1
	RELENG_7_3_0_RELEASE:1.18.10.1
	RELENG_7_3:1.18.0.10
	RELENG_7_3_BP:1.18
	RELENG_8_0_0_RELEASE:1.19.2.1.2.1
	RELENG_8_0:1.19.2.1.0.2
	RELENG_8_0_BP:1.19.2.1
	RELENG_8:1.19.0.2
	RELENG_8_BP:1.19
	RELENG_7_2_0_RELEASE:1.18.8.1
	RELENG_7_2:1.18.0.8
	RELENG_7_2_BP:1.18
	RELENG_7_1_0_RELEASE:1.18.6.1
	RELENG_6_4_0_RELEASE:1.16.2.1.6.1
	RELENG_7_1:1.18.0.6
	RELENG_7_1_BP:1.18
	RELENG_6_4:1.16.2.1.0.6
	RELENG_6_4_BP:1.16.2.1
	RELENG_7_0_0_RELEASE:1.18
	RELENG_6_3_0_RELEASE:1.16.2.1
	RELENG_7_0:1.18.0.4
	RELENG_7_0_BP:1.18
	RELENG_6_3:1.16.2.1.0.4
	RELENG_6_3_BP:1.16.2.1
	RELENG_7:1.18.0.2
	RELENG_7_BP:1.18
	RELENG_6_2_0_RELEASE:1.16.2.1
	RELENG_6_2:1.16.2.1.0.2
	RELENG_6_2_BP:1.16.2.1
	RELENG_5_5_0_RELEASE:1.14.2.1
	RELENG_5_5:1.14.2.1.0.4
	RELENG_5_5_BP:1.14.2.1
	RELENG_6_1_0_RELEASE:1.16
	RELENG_6_1:1.16.0.6
	RELENG_6_1_BP:1.16
	RELENG_6_0_0_RELEASE:1.16
	RELENG_6_0:1.16.0.4
	RELENG_6_0_BP:1.16
	RELENG_6:1.16.0.2
	RELENG_6_BP:1.16
	RELENG_5_4_0_RELEASE:1.14.2.1
	RELENG_5_4:1.14.2.1.0.2
	RELENG_5_4_BP:1.14.2.1
	RELENG_4_11_0_RELEASE:1.10.2.2
	RELENG_4_11:1.10.2.2.0.10
	RELENG_4_11_BP:1.10.2.2
	RELENG_5_3_0_RELEASE:1.14
	RELENG_5_3:1.14.0.4
	RELENG_5_3_BP:1.14
	RELENG_5:1.14.0.2
	RELENG_5_BP:1.14
	BEFORE_UN_JBING:1.12
	BEFORE_BU_2_15:1.12
	RELENG_4_10_0_RELEASE:1.10.2.2
	RELENG_4_10:1.10.2.2.0.8
	RELENG_4_10_BP:1.10.2.2
	RELENG_5_2_1_RELEASE:1.12
	RELENG_5_2_0_RELEASE:1.12
	RELENG_5_2:1.12.0.6
	RELENG_5_2_BP:1.12
	RELENG_4_9_0_RELEASE:1.10.2.2
	RELENG_4_9:1.10.2.2.0.6
	RELENG_4_9_BP:1.10.2.2
	RELENG_5_1_0_RELEASE:1.12
	RELENG_5_1:1.12.0.4
	RELENG_5_1_BP:1.12
	RELENG_4_8_0_RELEASE:1.10.2.2
	RELENG_4_8:1.10.2.2.0.4
	RELENG_4_8_BP:1.10.2.2
	RELENG_5_0_0_RELEASE:1.12
	RELENG_5_0:1.12.0.2
	RELENG_5_0_BP:1.12
	RELENG_4_7_0_RELEASE:1.10.2.2
	RELENG_4_7:1.10.2.2.0.2
	RELENG_4_7_BP:1.10.2.2
	BEFORE_BU_2121__RELENG4:1.10.2.1
	RELENG_4_6_2_RELEASE:1.10.2.1
	RELENG_4_6_1_RELEASE:1.10.2.1
	RELENG_4_6_0_RELEASE:1.10.2.1
	RELENG_4_6:1.10.2.1.0.8
	RELENG_4_6_BP:1.10.2.1
	BEFORE_BU_2_12:1.11
	RELENG_4_5_0_RELEASE:1.10.2.1
	BEFORE_BU_2112_snap:1.11
	RELENG_4_5:1.10.2.1.0.6
	RELENG_4_5_BP:1.10.2.1
	RELENG_4_4_0_RELEASE:1.10.2.1
	RELENG_4_4:1.10.2.1.0.4
	RELENG_4_4_BP:1.10.2.1
	BEFORE_BU_2112__RELENG4:1.10.2.1
	BEFORE_BU_2110:1.10
	RELENG_4_3_0_RELEASE:1.10.2.1
	RELENG_4_3:1.10.2.1.0.2
	RELENG_4_3_BP:1.10.2.1
	RELENG_4_2_0_RELEASE:1.10.2.1
	binutils_2_10_0:1.10
	RELENG_4_1_1_RELEASE:1.10.2.1
	PRE_SMPNG:1.10
	RELENG_4_1_0_RELEASE:1.10.2.1
	RELENG_3_5_0_RELEASE:1.4.2.1
	BEFORE_2_9_1_UPGRADE:1.10
	RELENG_4_0_0_RELEASE:1.10
	RELENG_4:1.10.0.2
	RELENG_4_BP:1.10
	RELENG_3_4_0_RELEASE:1.4.2.1
	RELENG_3_3_0_RELEASE:1.4.2.1
	RELENG_3_2_PAO:1.4.0.4
	RELENG_3_2_PAO_BP:1.4
	RELENG_3_2_0_RELEASE:1.4
	RELENG_3_1_0_RELEASE:1.4
	RELENG_3:1.4.0.2
	RELENG_3_BP:1.4
	RELENG_3_0_0_RELEASE:1.4;
locks; strict;
comment	@# @;


1.31
date	2012.12.18.04.48.03;	author svnexp;	state Exp;
branches
	1.31.2.1;
next	1.30;

1.30
date	2012.12.17.19.19.16;	author svnexp;	state Exp;
branches;
next	1.29;

1.29
date	2012.12.15.21.35.27;	author svnexp;	state Exp;
branches;
next	1.28;

1.28
date	2012.11.17.01.49.08;	author svnexp;	state Exp;
branches;
next	1.27;

1.27
date	2012.08.24.16.37.00;	author rdivacky;	state Exp;
branches;
next	1.26;

1.26
date	2012.08.15.03.21.56;	author gonzo;	state Exp;
branches;
next	1.25;

1.25
date	2012.04.29.09.32.44;	author kib;	state Exp;
branches;
next	1.24;

1.24
date	2012.03.23.19.37.45;	author gonzo;	state Exp;
branches;
next	1.23;

1.23
date	2011.02.18.20.54.12;	author dim;	state Exp;
branches
	1.23.2.1;
next	1.22;

1.22
date	2010.11.15.22.12.13;	author nwhitehorn;	state Exp;
branches;
next	1.21;

1.21
date	2010.11.10.06.39.49;	author imp;	state Exp;
branches;
next	1.20;

1.20
date	2010.07.10.02.29.22;	author nwhitehorn;	state Exp;
branches;
next	1.19;

1.19
date	2008.12.11.08.15.14;	author imp;	state Exp;
branches
	1.19.2.1;
next	1.18;

1.18
date	2006.10.09.04.52.14;	author kmacy;	state Exp;
branches
	1.18.2.1
	1.18.6.1
	1.18.8.1
	1.18.10.1
	1.18.12.1;
next	1.17;

1.17
date	2006.09.11.18.07.09;	author obrien;	state Exp;
branches;
next	1.16;

1.16
date	2004.12.21.09.59.40;	author ru;	state Exp;
branches
	1.16.2.1;
next	1.15;

1.15
date	2004.10.24.15.32.25;	author ru;	state Exp;
branches;
next	1.14;

1.14
date	2004.07.28.05.39.04;	author kan;	state Exp;
branches
	1.14.2.1;
next	1.13;

1.13
date	2004.07.08.17.05.30;	author obrien;	state Exp;
branches;
next	1.12;

1.12
date	2002.09.22.05.29.37;	author obrien;	state Exp;
branches;
next	1.11;

1.11
date	2001.10.14.01.47.30;	author obrien;	state Exp;
branches;
next	1.10;

1.10
date	99.12.17.15.50.42;	author marcel;	state Exp;
branches
	1.10.2.1;
next	1.9;

1.9
date	99.11.14.13.54.35;	author marcel;	state Exp;
branches;
next	1.8;

1.8
date	99.11.07.05.59.25;	author jb;	state Exp;
branches;
next	1.7;

1.7
date	99.11.06.21.54.21;	author jb;	state Exp;
branches;
next	1.6;

1.6
date	99.08.27.23.34.43;	author peter;	state Exp;
branches;
next	1.5;

1.5
date	99.03.01.04.01.56;	author imp;	state Exp;
branches;
next	1.4;

1.4
date	98.05.11.09.31.17;	author jb;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	98.05.04.22.01.27;	author jb;	state Exp;
branches;
next	1.2;

1.2
date	98.03.12.06.51.48;	author jb;	state Exp;
branches;
next	1.1;

1.1
date	98.03.12.02.54.57;	author jdp;	state Exp;
branches;
next	;

1.31.2.1
date	2012.12.18.04.48.03;	author svnexp;	state dead;
branches;
next	1.31.2.2;

1.31.2.2
date	2013.03.28.13.02.47;	author svnexp;	state Exp;
branches;
next	;

1.23.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.23.2.1.2.1;
next	1.23.2.2;

1.23.2.2
date	2012.05.13.13.57.53;	author kib;	state Exp;
branches
	1.23.2.2.2.1;
next	1.23.2.3;

1.23.2.3
date	2012.11.17.11.36.12;	author svnexp;	state Exp;
branches;
next	;

1.23.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.23.2.1.2.2;

1.23.2.1.2.2
date	2012.11.17.08.36.12;	author svnexp;	state Exp;
branches;
next	;

1.23.2.2.2.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.23.2.2.2.2;

1.23.2.2.2.2
date	2012.11.17.08.47.02;	author svnexp;	state Exp;
branches;
next	;

1.19.2.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.19.2.1.2.1
	1.19.2.1.4.1
	1.19.2.1.6.1
	1.19.2.1.8.1;
next	1.19.2.2;

1.19.2.2
date	2012.11.17.10.35.58;	author svnexp;	state Exp;
branches;
next	;

1.19.2.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.19.2.1.4.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.19.2.1.6.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.19.2.1.8.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.19.2.1.8.2;

1.19.2.1.8.2
date	2012.11.17.08.24.39;	author svnexp;	state Exp;
branches;
next	;

1.18.2.1
date	2012.11.17.08.01.28;	author svnexp;	state Exp;
branches;
next	;

1.18.6.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.18.8.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.18.10.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.18.12.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.18.12.2;

1.18.12.2
date	2012.11.17.08.16.38;	author svnexp;	state Exp;
branches;
next	;

1.16.2.1
date	2006.10.16.16.42.56;	author obrien;	state Exp;
branches
	1.16.2.1.6.1;
next	1.16.2.2;

1.16.2.2
date	2012.11.17.07.39.14;	author svnexp;	state Exp;
branches;
next	;

1.16.2.1.6.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.14.2.1
date	2005.02.13.07.23.06;	author obrien;	state Exp;
branches;
next	;

1.10.2.1
date	2000.07.06.22.15.41;	author obrien;	state Exp;
branches;
next	1.10.2.2;

1.10.2.2
date	2002.09.01.23.39.13;	author obrien;	state Exp;
branches;
next	1.10.2.3;

1.10.2.3
date	2012.11.17.07.23.00;	author svnexp;	state Exp;
branches;
next	;

1.4.2.1
date	99.08.29.14.31.55;	author peter;	state Exp;
branches;
next	;


desc
@@


1.31
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/244377
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# $FreeBSD: head/gnu/usr.bin/binutils/as/Makefile 244377 2012-12-18 04:44:36Z ache $


# BINDIR
.include "${.CURDIR}/../../Makefile.inc"
.include "${.CURDIR}/../Makefile.inc0"
.include <bsd.own.mk>

.PATH: ${SRCDIR}/gas ${SRCDIR}/gas/config

.if ${TARGET_ARCH:Marm*} || ${TARGET_ARCH} == "powerpc64"
NO_WERROR.clang=
.endif

PROG=	as
SRCS+=	app.c \
	as.c \
	atof-generic.c \
	atof-ieee.c \
	cond.c \
	depend.c \
	dw2gencfi.c \
	dwarf2dbg.c \
	ecoff.c \
	ehopt.c \
	expr.c \
	flonum-copy.c \
	flonum-konst.c \
	flonum-mult.c \
	frags.c \
	hash.c \
	input-file.c \
	input-scrub.c \
	listing.c \
	literal.c \
	macro.c \
	messages.c \
	obj-elf.c \
	output-file.c \
	read.c \
	sb.c \
	stabs.c \
	subsegs.c \
	symbols.c \
	write.c
# DEO: why not used?
#SRCS+=	itbl-ops.c

.if ${TARGET_ARCH} == "armv6" || ${TARGET_ARCH} == "armv6eb"
CFLAGS+=	-DCPU_DEFAULT=ARM_ARCH_V6K
.endif

.if ${TARGET_CPUARCH} == "mips"
SRCS+=	itbl-ops.c itbl-parse.y itbl-lex.l
.if ${TARGET_ARCH:Mmips64*} != ""
CFLAGS+=	-DMIPS_DEFAULT_ABI=N64_ABI -DMIPS_DEFAULT_64BIT=1
.elif ${TARGET_ARCH:Mmipsn32*} != ""
CFLAGS+=	-DMIPS_DEFAULT_ABI=N32_ABI
.else
MIPS_ABI_DEFAULT=ABI_32
.endif
.endif

.if ${TARGET_ARCH} == "amd64"
SRCS+=	tc-i386.c
.elif ${TARGET_CPUARCH} == "powerpc"
SRCS+=	tc-ppc.c
.elif ${TARGET_ARCH} == "sparc64"
SRCS+=	tc-sparc.c
.else
SRCS+=	tc-${TARGET_CPUARCH}.c
.endif

.if ${TARGET_ARCH} == "sparc64"
CFLAGS+= -DDEFAULT_ARCH=\"v9-64\"
.else
CFLAGS+= -DDEFAULT_ARCH=\"${BINUTILS_ARCH}\"
.endif
.if defined(TARGET_BIG_ENDIAN)
CFLAGS+= -DTARGET_BYTES_BIG_ENDIAN=1
.endif
CFLAGS+= -DTARGET_CPU=\"${BINUTILS_ARCH}\"
CFLAGS+= -DTARGET_OS=\"${TARGET_OS}\"
CFLAGS+= -DTARGET_CANONICAL=\"${TARGET_TUPLE}\"
CFLAGS+= -DTARGET_ALIAS=\"${TARGET_TUPLE}\"
CFLAGS+= -DVERSION=\"${VERSION}\"
CFLAGS+= -D_GNU_SOURCE
CFLAGS+= -I${SRCDIR}/gas -I${SRCDIR}/bfd -I${SRCDIR}/gas/config -I${SRCDIR}
CFLAGS+= -I${.CURDIR} -I${.CURDIR}/${TARGET_CPUARCH}-freebsd

.if ${MK_SHARED_TOOLCHAIN} == "no"
NO_SHARED?=	yes
.endif

DPADD=	${RELTOP}/libbfd/libbfd.a
DPADD+=	${RELTOP}/libiberty/libiberty.a
DPADD+=	${RELTOP}/libopcodes/libopcodes.a
LDADD=	${DPADD}

.include <bsd.prog.mk>
@


1.31.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:02:47 +0000
@
text
@d1 100
@


1.31.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 61
# $FreeBSD: releng/8.4/gnu/usr.bin/binutils/as/Makefile 185922 2008-12-11 08:15:14Z imp $


# BINDIR
.include "${.CURDIR}/../../Makefile.inc"
WARNS?=	2
NO_WERROR=
.include "${.CURDIR}/../Makefile.inc0"

.PATH: ${SRCDIR}/gas ${SRCDIR}/gas/config

PROG=	as
MAN=	doc/as.1
SRCS+=	app.c as.c atof-generic.c atof-ieee.c bignum-copy.c \
	cond.c dwarf2dbg.c ecoff.c expr.c flonum-copy.c flonum-konst.c \
	flonum-mult.c frags.c hash.c input-file.c \
	input-scrub.c listing.c literal.c macro.c messages.c \
	obj-elf.c output-file.c read.c sb.c stabs.c \
	subsegs.c symbols.c write.c depend.c ehopt.c dw2gencfi.c
# DEO: why not used?
#SRCS+=	itbl-ops.c

.if ${TARGET_ARCH} == "mips"
SRCS+=	itbl-ops.c itbl-parse.y itbl-lex.l
.endif

.if ${TARGET_ARCH} == "amd64"
SRCS+=	tc-i386.c
.elif ${TARGET_ARCH} == "powerpc"
SRCS+=	tc-ppc.c
.elif ${TARGET_ARCH} == "sparc64"
# change back to tc-sparc.c when new binutils is imported
SRCS+=	tc-sparc-fixed.c
.else
SRCS+=	tc-${TARGET_ARCH}.c
.endif

.if ${TARGET_ARCH} == "sparc64"
CFLAGS+= -DDEFAULT_ARCH=\"v9-64\"
.else
CFLAGS+= -DDEFAULT_ARCH=\"${BINUTILS_ARCH}\"
.endif
.if defined(TARGET_BIG_ENDIAN)
CFLAGS+= -DTARGET_BYTES_BIG_ENDIAN=1
.endif
CFLAGS+= -DTARGET_CPU=\"${BINUTILS_ARCH}\"
CFLAGS+= -DTARGET_CANONICAL=\"${TARGET_TUPLE}\"
CFLAGS+= -DTARGET_ALIAS=\"${TARGET_TUPLE}\"
CFLAGS+= -DVERSION=\"${VERSION}\"
CFLAGS+= -D_GNU_SOURCE
CFLAGS+= -I${SRCDIR}/gas -I${SRCDIR}/gas/config -I${SRCDIR}
CFLAGS+= -I${.CURDIR} -I${.CURDIR}/${TARGET_ARCH}-freebsd

NO_SHARED?=	yes

DPADD=	${RELTOP}/libbfd/libbfd.a
DPADD+=	${RELTOP}/libiberty/libiberty.a
DPADD+=	${RELTOP}/libopcodes/libopcodes.a
LDADD=	${DPADD}

.include <bsd.prog.mk>
@


1.30
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/244362
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d1 1
a1 1
# $FreeBSD: head/gnu/usr.bin/binutils/as/Makefile 244362 2012-12-17 19:17:10Z ache $
d11 1
a11 1
.if ${TARGET_ARCH} == "arm" || ${TARGET_ARCH} == "powerpc64"
@


1.29
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/244277
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d1 1
a1 1
# $FreeBSD: head/gnu/usr.bin/binutils/as/Makefile 244277 2012-12-15 21:33:12Z andrew $
d11 1
a11 1
.if ${TARGET} == "arm" || ${TARGET_ARCH} == "powerpc64"
@


1.28
log
@Switching exporter and resync
@
text
@d1 1
a1 1
# $FreeBSD: head/gnu/usr.bin/binutils/as/Makefile 239654 2012-08-24 16:37:00Z rdivacky $
d11 1
a11 1
.if ${TARGET_ARCH} == "powerpc64"
@


1.27
log
@SVN rev 239654 on 2012-08-24 16:37:00Z by rdivacky

Dont use -Werror when building libbfd and gnu as on powerpc64 with clang
as there are warnings.

Reviewed by:    nwhitehorn
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.26
log
@SVN rev 239272 on 2012-08-15 03:21:56Z by gonzo

Merging of projects/armv6, part 3

r238211:
Support TARGET_ARCH=armv6 and TARGET_ARCH=armv6eb

This adds a new TARGET_ARCH for building on ARM
processors that support the ARMv6K multiprocessor
extensions.  In particular, these processors have
better support for TLS and mutex operations.

This mostly touches a lot of Makefiles to extend
existing patterns for inferring CPUARCH from ARCH.
It also configures:
 * GCC to default to arm1176jz-s
 * GCC to predefine __FreeBSD_ARCH_armv6__
 * gas to default to ARM_ARCH_V6K
 * uname -p to return 'armv6'
 * make so that MACHINE_ARCH defaults to 'armv6'
It also changes a number of headers to use
the compiler __ARM_ARCH_XXX__ macros to configure
processor-specific support routines.

Submitted by:	Tim Kientzle <kientzle@@freebsd.org>
@
text
@d11 4
@


1.25
log
@SVN rev 234782 on 2012-04-29 09:32:44Z by kib

Add src.conf option WITH_SHARED_TOOLCHAIN to enable building the
toolchain binaries as dynamically linked.  Option is disabled by
default.

Reviewed by:	ru (previous version)
MFC after:	2 weeks
@
text
@d45 4
@


1.24
log
@SVN rev 233388 on 2012-03-23 19:37:45Z by gonzo

Make default ABI for as(1) to be the same as target platform.
This change makes object files compiled with default flags by
gcc and as compatible.
@
text
@d7 1
d83 1
d85 1
@


1.23
log
@SVN rev 218822 on 2011-02-18 20:54:12Z by dim

Merge binutils 2.17.50 to head.  This brings a number of improvements to
x86 CPU support, better support for powerpc64, some new directives, and
many other things.  Bump __FreeBSD_version, and add a note to UPDATING.

Thanks to the many people that have helped to test this.

Obtained from:	projects/binutils-2.17
@
text
@d46 7
@


1.23.2.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.23.2.2
log
@SVN rev 235398 on 2012-05-13 13:57:53Z by kib

MFC r234782:
Add src.conf option WITH_SHARED_TOOLCHAIN to enable building the
toolchain binaries as dynamically linked.  Option is disabled by
default.

MFC r235152 (by imp):
Make is part of the bootstrap path, so we need to guard against this
not being defined.  Otherwise we don't make a new make when the old
make is incompatible.
@
text
@a6 1
.include <bsd.own.mk>
a74 1
.if ${MK_SHARED_TOOLCHAIN} == "no"
a75 1
.endif
@


1.23.2.3
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/9/gnu/usr.bin/binutils/as/Makefile 235398 2012-05-13 13:57:53Z kib $
@


1.23.2.2.2.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.23.2.2.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.1/gnu/usr.bin/binutils/as/Makefile 235398 2012-05-13 13:57:53Z kib $
@


1.23.2.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.23.2.1.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.0/gnu/usr.bin/binutils/as/Makefile 218822 2011-02-18 20:54:12Z dim $
@


1.22
log
@SVN rev 215352 on 2010-11-15 22:12:13Z by nwhitehorn

Garbage-collect some code made obsolete by the TBEMD import.
@
text
@a5 2
WARNS?=	2
NO_WERROR=
d11 30
a40 7
MAN=	doc/as.1
SRCS+=	app.c as.c atof-generic.c atof-ieee.c bignum-copy.c \
	cond.c dwarf2dbg.c ecoff.c expr.c flonum-copy.c flonum-konst.c \
	flonum-mult.c frags.c hash.c input-file.c \
	input-scrub.c listing.c literal.c macro.c messages.c \
	obj-elf.c output-file.c read.c sb.c stabs.c \
	subsegs.c symbols.c write.c depend.c ehopt.c dw2gencfi.c
d53 1
a53 2
# change back to tc-sparc.c when new binutils is imported
SRCS+=	tc-sparc-fixed.c
d67 1
d72 1
a72 1
CFLAGS+= -I${SRCDIR}/gas -I${SRCDIR}/gas/config -I${SRCDIR}
@


1.21
log
@SVN rev 215082 on 2010-11-10 06:39:49Z by imp

Complete the integration of tbemd branch into head.

TARGET_BIG_ENDIAN is now completely dead, except where it was
originally supposed to be used (internally in the toolchain building).

TARGET_ARCH has changed in three cases:
(1) Little endian mips has changed to mipsel.
(2) Big endian mips has changed to mipseb.
(3) Big endian arm has changed to armeb.

Some additional changes are needed to make 'make universe' work on arm
and mips after this change, so those are commented out for now.

UPDATING information will be forthcoming.  Any remaining rough edges
will be hammered out in -current.
@
text
@d29 1
a29 1
.elif ${TARGET_ARCH} == "powerpc" || ${TARGET_ARCH} == "powerpc64"
@


1.20
log
@SVN rev 209867 on 2010-07-10 02:29:22Z by nwhitehorn

Teach our toolchain how to generate 64-bit PowerPC binaries. This fixes
a variety of bugs in binutils related to handling of 64-bit PPC ELF,
provides a GCC configuration for 64-bit PowerPC on FreeBSD, and
associated build systems tweaks.

Obtained from:	projects/ppc64
@
text
@d23 1
a23 1
.if ${TARGET_ARCH} == "mips"
d35 1
a35 1
SRCS+=	tc-${TARGET_ARCH}.c
d52 1
a52 1
CFLAGS+= -I${.CURDIR} -I${.CURDIR}/${TARGET_ARCH}-freebsd
@


1.19
log
@SVN rev 185922 on 2008-12-11 08:15:14Z by imp

Push mips support for as into the tree.
@
text
@d29 1
a29 1
.elif ${TARGET_ARCH} == "powerpc"
@


1.19.2.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.19.2.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/8/gnu/usr.bin/binutils/as/Makefile 185922 2008-12-11 08:15:14Z imp $
@


1.19.2.1.8.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.19.2.1.8.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/8.3/gnu/usr.bin/binutils/as/Makefile 185922 2008-12-11 08:15:14Z imp $
@


1.19.2.1.6.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.19.2.1.4.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.19.2.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.18
log
@Temporarily add newer copy of tc-sparc.c to build to
support building of sun4v. This can be removed once
the binutils import happens.

Reviewed by: kan
Approved by: rwatson (mentor)
@
text
@d23 4
@


1.18.2.1
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/7/gnu/usr.bin/binutils/as/Makefile 163147 2006-10-09 04:52:14Z kmacy $
@


1.18.12.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.18.12.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/7.4/gnu/usr.bin/binutils/as/Makefile 163147 2006-10-09 04:52:14Z kmacy $
@


1.18.10.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.18.8.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.18.6.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.17
log
@Define build 'as' TARGET_BYTES_BIG_ENDIAN if "TARGET_BIG_ENDIAN" is defined.
This is needed for bi-sex architectures.
@
text
@d28 2
a29 1
SRCS+=	tc-sparc.c
@


1.16
log
@NOSHARED -> NO_SHARED
@
text
@d38 3
@


1.16.2.1
log
@MFC: build 'as' for big endian if "TARGET_BIG_ENDIAN" is defined.

Approved by:	re(KEN)
@
text
@a37 3
.if defined(TARGET_BIG_ENDIAN)
CFLAGS+= -DTARGET_BYTES_BIG_ENDIAN=1
.endif
@


1.16.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/6/gnu/usr.bin/binutils/as/Makefile 163438 2006-10-16 16:42:56Z obrien $
@


1.16.2.1.6.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.15
log
@For variables that are only checked with defined(), don't provide
any fake value.
@
text
@d46 1
a46 1
NOSHARED?=	yes
@


1.14
log
@Add NO_WERROR here. Binutils as does not compile cleanly with GCC 3.4.x.
@
text
@d7 1
a7 1
NO_WERROR= yes
@


1.14.2.1
log
@MFC: For variables that are only checked with defined(), don't provide
     any fake value.
@
text
@d7 1
a7 1
NO_WERROR=
@


1.13
log
@MAJOR cleanup of the Bmake framework.
This includes removing all vestiges of the old not-really supported
ability to build cross tools targeting non-FreeBSD systems, such as
m68k Lynx and NetBSD.  Move as much duplicated code from platform
Makefiles into the shared Makefiles.  Add a simple mechanism for
specifying ELF 'ldscripts'.  Also share as many .h files as possible
(now a single bfd.h vs. one per platform).
@
text
@d7 1
@


1.12
log
@There is need to have a special BINUTIL_ARCH when we can use our more
common place TARGET_ARCH.
@
text
@d3 4
d9 12
a20 2
GASES=	${TARGET_ARCH}
FORMATS=freebsd
d22 8
a29 16
# Only build the cross tools when not cross-compiling.
.if ${TARGET_ARCH} == ${MACHINE_ARCH}
.if defined(CROSS_ARCH)
.for _g in ${CROSS_ARCH}
.if (${GASES:R:M${_g:R}} == "")
GASES+= $(_g)
.endif
.endfor
.endif
.if defined(CROSS_FORMATS)
.for _f in ${CROSS_FORMATS}
.if (${FORMATS:R:M${_f:R}} == "")
FORMATS+= $(_f)
.endif
.endfor
.endif
d32 19
a50 7
.for _g in ${GASES}
.for _f in ${FORMATS}
.if exists(${.CURDIR}/${_g}-${_f})
SUBDIR+=	${_g}-${_f}
.endif
.endfor
.endfor
d52 1
a52 1
.include <bsd.subdir.mk>
@


1.11
log
@Clean up the formatting.
@
text
@d5 1
a5 1
GASES=	${BINUTIL_ARCH}
@


1.10
log
@s/MACHINE_ARCH/TARGET_ARCH/g

The target machine is represented by TARGET_ARCH. MACHINE_ARCH always
represents the host machine. When TARGET_ARCH is not defined, it is
assumed to be equal to MACHINE_ARCH. This means that we're building a
native toolset by default. We're creating cross-compilation tools when
MACHINE_ARCH != TARGET_ARCH.

TARGET_ARCH is defined when building binutils as part of the bootstrap
build and is set to reflect the architecture we're currently cross-
building. With this change binutils is ready for cross-building.
@
text
@d1 1
a1 3
#
# $FreeBSD: src/gnu/usr.bin/binutils/as/Makefile,v 1.9 1999/11/14 13:54:35 marcel Exp $
#
d5 2
a6 2
GASES=		${BINUTIL_ARCH}
FORMATS=	freebsd
d13 1
a13 1
GASES+=$(_g)
d20 1
a20 1
FORMATS+=$(_f)
@


1.10.2.1
log
@MFC:  Upgrade to Binutils 2.10.0.
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.10.2.2
log
@Upgrade to binutils 2.12.1.
@
text
@d1 1
d3 1
d7 2
a8 2
GASES=	${BINUTIL_ARCH}
FORMATS=freebsd
d15 1
a15 1
GASES+= $(_g)
d22 1
a22 1
FORMATS+= $(_f)
@


1.10.2.3
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/4/gnu/usr.bin/binutils/as/Makefile 102827 2002-09-01 23:44:26Z obrien $
@


1.9
log
@${MACHINE} -> ${MACHINE_ARCH}

All Makefiles now use MACHINE_ARCH for the target architecture.
Unification is required for cross-building.

Tags added to:
	sys/boot/Makefile
	sys/boot/arc/loader/Makefile
	sys/kern/Makefile
	usr.bin/cpp/Makefile
	usr.bin/gcore/Makefile
	usr.bin/truss/Makefile

usr.bin/gcore/Makefile:
	fixed typo: MACHINDE -> MACHINE_ARCH
@
text
@d2 1
a2 1
# $FreeBSD: src/gnu/usr.bin/binutils/as/Makefile,v 1.8 1999/11/07 05:59:25 jb Exp $
d11 1
a11 2
__MA!=/sbin/sysctl -b hw.machine_arch
.if ${__MA} == ${MACHINE_ARCH}
@


1.8
log
@After a repo copy of as_{alpha,i386,mips} to {alpha,i386,mips}-freebsd,
tidy up the logic that works out which sub-directories to build.

The new directories with freebsdelf suffixes now have freebsd suffixes
after a repo move by Peter at the request of David O'Brien.
@
text
@d2 1
a2 1
# $FreeBSD: src/gnu/usr.bin/binutils/as/Makefile,v 1.7 1999/11/06 21:54:21 jb Exp $
d12 1
a12 2
__M!=/sbin/sysctl -b hw.machine
.if ${__MA} == ${MACHINE_ARCH} || ${__M} == ${MACHINE}
@


1.7
log
@Change CROSS_TARGETS to CROSS_FORMATS because that makes more sense.

Check if already cross-compiling and only build the cross-tools if
not cross-compiling (to save time).
@
text
@d2 1
a2 1
# $FreeBSD: src/gnu/usr.bin/binutils/as/Makefile,v 1.6 1999/08/27 23:34:43 peter Exp $
d8 1
d21 7
d31 1
a31 5
.if exists(${.CURDIR}/as_${_g})
SUBDIR+=	as_${_g}
.endif
.if defined(CROSS_FORMATS)
.for _f in ${CROSS_FORMATS}
a35 1
.endif
@


1.6
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
d8 14
a21 1
GASES+=		${CROSS_TOOLS} ${CROSS_TARGETS}	
d25 7
@


1.5
log
@Add TARGET_ARCH=mipsel and TARGET_ARCH=mipseb as a valid targets.
Unlike the unisex architecutres we've had so far, mips is bisexual.
These tools can produce either byte sex, and the compiler/make
determines the proper gender to use.  Otherwise, we'd have to have had
mipsel and mipseb in all the places that we have just mips.  And there
are other complications with doing that (binutils doesn't like to
build mips tools without both byte genders, it seems).

Introduced BINUTIL_ARCH so that other bisexual architectures can a
generic mechanism.

We cannot just define MACHINE_ARCH as mips because we need to
differentiate big and little endian types of binaries.  Discussions on
freebsd-arch have hashed out this issue (and the parallel libc
issues).  NetBSD is moving towards mipsel and mipseb for their two
flavors of mips ports (in time for 1.4, if this change hasn't already
been accomplished).

I've been building i386 worlds with this tree for a three months with
these files in place with no ill effects.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.4 1998/05/11 09:31:17 jb Exp $
@


1.4
log
@Add CROSS_TARGETS to the list of GASES to build. We end up with a separate
gas for each target format. So for m68k targets that means several
gases. I wanted a m68k gas for VxWorks which uses aout in sun3 big
endian format, cross compiled on i386 under FreeBSD using libraries
supplied by DEC and intended by them for cross compilation on Alpha
under OSF/1. And it actually works!
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.3 1998/05/04 22:01:27 jb Exp $
d5 4
a8 1
GASES=		${MACHINE_ARCH} ${CROSS_TOOLS} ${CROSS_TARGETS}
@


1.4.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.3
log
@Add support for cross-architecture gases. Since the GNU code doesn't
support more than one architecture at a time, build as from the
default for the host and if CROSS_TOOLS defines other architectures,
build them as as_${arch}
@
text
@d2 1
a2 1
# $Id$
d5 1
a5 1
GASES=		${MACHINE_ARCH} ${CROSS_TOOLS}
d7 1
d9 1
@


1.2
log
@Add the alpha makefile.

Move tc-i386.c from Makefile to Makefile.i386 'cause alpha doesn't
like trying to swallow it. Indigestion, I think.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.1 1998/03/12 02:54:57 jdp Exp $
d5 4
a8 1
.include "../Makefile.inc0"
d10 1
a10 17
.PATH: ${SRCDIR}/gas ${SRCDIR}/gas/config

PROG=		as
MAN1=		doc/as.1
SRCS+=		app.c as.c atof-generic.c atof-ieee.c bignum-copy.c \
		cond.c ecoff.c expr.c flonum-copy.c flonum-konst.c \
		flonum-mult.c frags.c hash.c input-file.c \
		input-scrub.c listing.c literal.c macro.c messages.c \
		obj-elf.c output-file.c read.c sb.c stabs.c \
		subsegs.c symbols.c write.c
CFLAGS+=	-I${SRCDIR}/gas
CFLAGS+=	-I${SRCDIR}/gas/config
CFLAGS+=	-I${SRCDIR}
LDADD+=		-L${RELTOP}/libbfd -lbfd
LDADD+=		-L${RELTOP}/libiberty -liberty

.include <bsd.prog.mk>
@


1.1
log
@Restructure the binutils hierarchy somewhat in order to better
support building it for variant architectures.  It was already
becoming clear that the former structure was too rigid and didn't
scale well.

The usual sort of makefile magic arranges to .include an architecture
specific makefile "Makefile.${MACHINE_ARCH}" in each directory
where it exists.  Also, sources will be found in each subdirectory
"${MACHINE_ARCH}" that exists.  This is all taken care of automatically
by the top level "Makefile.inc0".

This all seems to work right for the i386 now.  I have also converted
those alpha pieces already present to the new schema as best I
could.

Also: change the BINDIR on the i386 to /usr/libexec/elf for "ar"
and "ranlib".  They are not object format independent enough to
put into /usr/bin.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.1.1.1 1998/03/01 23:40:59 jdp Exp $
d11 1
a11 1
SRCS=		app.c as.c atof-generic.c atof-ieee.c bignum-copy.c \
d16 1
a16 1
		subsegs.c symbols.c tc-i386.c write.c
@
