From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8086 invoked by alias); 1 Nov 2002 02:27:54 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 7979 invoked from network); 1 Nov 2002 02:27:53 -0000 Received: from unknown (HELO dragon.nuxi.com) (66.92.13.169) by sources.redhat.com with SMTP; 1 Nov 2002 02:27:53 -0000 Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.6/8.12.2) with ESMTP id gA12RrJR079537 for ; Thu, 31 Oct 2002 18:27:53 -0800 (PST) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.6/8.12.6/Submit) id gA12QbVN079536 for gcc-patches@gcc.gnu.org; Thu, 31 Oct 2002 18:26:37 -0800 (PST) Date: Thu, 31 Oct 2002 18:27:00 -0000 From: "David O'Brien" To: gcc-patches@gcc.gnu.org Subject: [PATCH] fix Emacs building on FreeBSD/sparc64 Message-ID: <20021101022637.GA79524@dragon.nuxi.com> Reply-To: obrien@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 X-SW-Source: 2002-10/txt/msg01985.txt.bz2 I'd like to commit this to both mainline and 3.2-branch. 2002-10-31 David O'Brien * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Define __arch64__. Add comment. Index: freebsd.h =================================================================== RCS file: /cvs/gcc/egcs/gcc/config/sparc/freebsd.h,v retrieving revision 1.13 diff -u -r1.13 freebsd.h --- freebsd.h 31 Oct 2002 09:08:11 -0000 1.13 +++ freebsd.h 1 Nov 2002 02:25:11 -0000 @@ -18,11 +18,13 @@ along with GNU CC; see the file COPYING. If not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* FreeBSD needs's the platform name (sparc64) defined. */ +/* FreeBSD needs's the platform name (sparc64) defined. + Emacs needs to know if the arch is 64 or 32-bits. */ #undef CPP_CPU64_DEFAULT_SPEC -#define CPP_CPU64_DEFAULT_SPEC "-D__sparc64__ -D__sparc_v9__" +#define CPP_CPU64_DEFAULT_SPEC "-D__sparc64__ -D__sparc_v9__ -D__arch64__" +/* Because we include sparc/sysv4.h. */ #undef CPP_PREDEFINES #define CPP_PREDEFINES FBSD_CPP_PREDEFINES