From owner-freebsd-mips@FreeBSD.ORG Tue Jul 19 14:27:31 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 962301065675 for ; Tue, 19 Jul 2011 14:27:31 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 524948FC0A for ; Tue, 19 Jul 2011 14:27:31 +0000 (UTC) Received: from 63.imp.bsdimp.com (63.imp.bsdimp.com [10.0.0.63]) (authenticated bits=0) by harmony.bsdimp.com (8.14.4/8.14.3) with ESMTP id p6JENr7R092474 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO); Tue, 19 Jul 2011 08:23:54 -0600 (MDT) (envelope-from imp@bsdimp.com) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: Date: Tue, 19 Jul 2011 08:23:49 -0600 Content-Transfer-Encoding: 7bit Message-Id: References: To: Robert Millan X-Mailer: Apple Mail (2.1084) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (harmony.bsdimp.com [10.0.0.6]); Tue, 19 Jul 2011 08:23:54 -0600 (MDT) Cc: freebsd-mips@freebsd.org Subject: Re: [PATCH] _MIPS_SIM builtin macro X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jul 2011 14:27:31 -0000 On Jul 19, 2011, at 8:06 AM, Robert Millan wrote: > 2011/7/19 Jayachandran C. : >> The macros seems to be already there, or am I missing something here? >> >> [jc@daemon]$ make buildenv >> Entering world for mips64eb:mips >> $ touch /tmp/x.c >> $ gcc -dM -E /tmp/x.c | grep SIM >> #define _MIPS_SIM _ABI64 > > My bad. I checked gcc/config/mips/mips.h, but in FreeBSD tree they're > implemented as OS-specific macros. I should have grepped in the whole > tree. That likely is a bug, but maybe not one worth fixing :) Warner