From owner-svn-src-user@FreeBSD.ORG Sat Feb 27 19:43:14 2010 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA1B8106566C; Sat, 27 Feb 2010 19:43:14 +0000 (UTC) (envelope-from jmallett@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 9EAD28FC15; Sat, 27 Feb 2010 19:43:14 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o1RJhEQu055098; Sat, 27 Feb 2010 19:43:14 GMT (envelope-from jmallett@svn.freebsd.org) Received: (from jmallett@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o1RJhEtD055094; Sat, 27 Feb 2010 19:43:14 GMT (envelope-from jmallett@svn.freebsd.org) Message-Id: <201002271943.o1RJhEtD055094@svn.freebsd.org> From: Juli Mallett Date: Sat, 27 Feb 2010 19:43:14 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r204428 - in user/jmallett/octeon: contrib/gcc/config/mips gnu/usr.bin/binutils/ld share/mk X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Feb 2010 19:43:14 -0000 Author: jmallett Date: Sat Feb 27 19:43:14 2010 New Revision: 204428 URL: http://svn.freebsd.org/changeset/base/204428 Log: o) Add ABI-related defines used by libgcc to determine things like float size, fixing libgcc build for n32. o) Default to n32, hackishly. Modified: user/jmallett/octeon/contrib/gcc/config/mips/freebsd.h user/jmallett/octeon/gnu/usr.bin/binutils/ld/Makefile.mips user/jmallett/octeon/share/mk/bsd.cpu.mk Modified: user/jmallett/octeon/contrib/gcc/config/mips/freebsd.h ============================================================================== --- user/jmallett/octeon/contrib/gcc/config/mips/freebsd.h Sat Feb 27 19:02:21 2010 (r204427) +++ user/jmallett/octeon/contrib/gcc/config/mips/freebsd.h Sat Feb 27 19:43:14 2010 (r204428) @@ -170,14 +170,21 @@ Boston, MA 02110-1301, USA. */ \ if (mips_abi == ABI_EABI) \ builtin_define ("__mips_eabi"); \ - else if (mips_abi == ABI_N32) \ + else if (mips_abi == ABI_N32) { \ + builtin_define ("_ABIN32=2"); \ + builtin_define ("_MIPS_SIM=_ABIN32"); \ builtin_define ("__mips_n32"); \ - else if (mips_abi == ABI_64) \ + } else if (mips_abi == ABI_64) { \ + builtin_define ("_ABI64=3"); \ + builtin_define ("_MIPS_SIM=_ABI64"); \ builtin_define ("__mips_n64"); \ - else if (mips_abi == ABI_O64) \ + } else if (mips_abi == ABI_O64) \ builtin_define ("__mips_o64"); \ - else \ + else { \ + builtin_define ("_ABIO32=1"); \ + builtin_define ("_MIPS_SIM=_ABIO32"); \ builtin_define ("__mips_o32"); \ + } \ \ if (TARGET_ABICALLS) \ builtin_define ("__ABICALLS__"); \ Modified: user/jmallett/octeon/gnu/usr.bin/binutils/ld/Makefile.mips ============================================================================== --- user/jmallett/octeon/gnu/usr.bin/binutils/ld/Makefile.mips Sat Feb 27 19:02:21 2010 (r204427) +++ user/jmallett/octeon/gnu/usr.bin/binutils/ld/Makefile.mips Sat Feb 27 19:43:14 2010 (r204428) @@ -5,9 +5,9 @@ # of mipsel and mips. _sz?=32 .if defined(TARGET_BIG_ENDIAN) -NATIVE_EMULATION=elf${_sz}btsmip_fbsd +NATIVE_EMULATION=elf${_sz}btsmipn32_fbsd .else -NATIVE_EMULATION=elf${_sz}ltsmip_fbsd +NATIVE_EMULATION=elf${_sz}ltsmipn32_fbsd .endif MIPS_ABIS+=elf32btsmip_fbsd elf32ltsmip_fbsd Modified: user/jmallett/octeon/share/mk/bsd.cpu.mk ============================================================================== --- user/jmallett/octeon/share/mk/bsd.cpu.mk Sat Feb 27 19:02:21 2010 (r204427) +++ user/jmallett/octeon/share/mk/bsd.cpu.mk Sat Feb 27 19:43:14 2010 (r204428) @@ -208,6 +208,8 @@ LD += -EB CFLAGS += -EL LD += -EL . endif +# XXX What if 64-bit? Need TARGET_ABI? +CFLAGS += -mabi=n32 CFLAGS += -msoft-float -G0 -mno-dsp -mabicalls .endif