From owner-svn-src-head@FreeBSD.ORG Thu Dec 11 08:15:15 2008 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8DB191065680; Thu, 11 Dec 2008 08:15:15 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 7E7168FC25; Thu, 11 Dec 2008 08:15:15 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mBB8FFXX059056; Thu, 11 Dec 2008 08:15:15 GMT (envelope-from imp@svn.freebsd.org) Received: (from imp@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mBB8FFOL059053; Thu, 11 Dec 2008 08:15:15 GMT (envelope-from imp@svn.freebsd.org) Message-Id: <200812110815.mBB8FFOL059053@svn.freebsd.org> From: Warner Losh Date: Thu, 11 Dec 2008 08:15:15 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r185922 - in head/gnu/usr.bin/binutils/as: . mips-freebsd X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Dec 2008 08:15:15 -0000 Author: imp Date: Thu Dec 11 08:15:14 2008 New Revision: 185922 URL: http://svn.freebsd.org/changeset/base/185922 Log: Push mips support for as into the tree. Added: head/gnu/usr.bin/binutils/as/mips-freebsd/ head/gnu/usr.bin/binutils/as/mips-freebsd/itbl-cpu.h (contents, props changed) head/gnu/usr.bin/binutils/as/mips-freebsd/targ-cpu.h (contents, props changed) Modified: head/gnu/usr.bin/binutils/as/Makefile Modified: head/gnu/usr.bin/binutils/as/Makefile ============================================================================== --- head/gnu/usr.bin/binutils/as/Makefile Thu Dec 11 08:08:28 2008 (r185921) +++ head/gnu/usr.bin/binutils/as/Makefile Thu Dec 11 08:15:14 2008 (r185922) @@ -20,6 +20,10 @@ SRCS+= app.c as.c atof-generic.c atof-ie # 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" Added: head/gnu/usr.bin/binutils/as/mips-freebsd/itbl-cpu.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/gnu/usr.bin/binutils/as/mips-freebsd/itbl-cpu.h Thu Dec 11 08:15:14 2008 (r185922) @@ -0,0 +1,19 @@ +/* $FreeBSD$ */ + +#include "itbl-mips.h" + +/* Choose a default ABI for MIPS targets. */ +/* XXX: Where should this be ? */ +#define MIPS_DEFAULT_ABI NO_ABI + +/* Default CPU for MIPS targets. */ +#define MIPS_CPU_STRING_DEFAULT "from-abi" + +/* Generate 64-bit code by default on MIPS targets. */ +#define MIPS_DEFAULT_64BIT 0 + +/* Allow use of E_MIPS_ABI_O32 on MIPS targets. */ +#define USE_E_MIPS_ABI_O32 1 + +/* Use traditional mips */ +#define TE_TMIPS 1 Added: head/gnu/usr.bin/binutils/as/mips-freebsd/targ-cpu.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/gnu/usr.bin/binutils/as/mips-freebsd/targ-cpu.h Thu Dec 11 08:15:14 2008 (r185922) @@ -0,0 +1,4 @@ +/* $FreeBSD$ */ +#define TE_TMIPS 1 + +#include "tc-mips.h"