Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Dec 2008 08:15:15 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r185922 - in head/gnu/usr.bin/binutils/as: . mips-freebsd
Message-ID:  <200812110815.mBB8FFOL059053@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812110815.mBB8FFOL059053>