From owner-freebsd-arm@FreeBSD.ORG Tue Dec 11 18:43:07 2012 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AFD0EC39 for ; Tue, 11 Dec 2012 18:43:07 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by mx1.freebsd.org (Postfix) with ESMTP id 753C48FC12 for ; Tue, 11 Dec 2012 18:43:07 +0000 (UTC) Received: by mail-pa0-f54.google.com with SMTP id bi5so3162978pad.13 for ; Tue, 11 Dec 2012 10:43:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:subject:mime-version:content-type:from:x-priority :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer:x-gm-message-state; bh=X2pSJb3JniuxaFysXqICnMKeft8cVxPRKoqKD/JoN1Q=; b=i3pGzoZB7bf6cBAq6hFkMiXuSQH118QhJks/4d/1trwaHOr4Gw9+kX9TpAzW12kiXG Jv537rS2kG1mqH1hYnwApwqIYSFISKZ4fUwerXIvGmlmFqvfWYrvh6+CrV13QuDkjvrJ q1E5S4FFs3rluL42j3tHYCQAa4DZopToq948Yc/9f8x4YV+0DGqV7yQ2fC2lldmWUy2j qDhFU2UO9Ido5i49BEKqzF9E5B4Wxr15vE4mif8laMoK2QZyJfUwyYiNrVx4GSWZbqGd QCZvUIjzhSgGYIRDyMuTWypi+fBS/qwZmADCbYtyYEHzlcwl5hpjiHgY38g74eYKAL4i cIKQ== Received: by 10.66.80.8 with SMTP id n8mr47403086pax.40.1355251382889; Tue, 11 Dec 2012 10:43:02 -0800 (PST) Received: from [10.0.0.53] (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPS id ou3sm7345309pbb.46.2012.12.11.10.43.00 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 11 Dec 2012 10:43:01 -0800 (PST) Sender: Warner Losh Subject: Re: ARM EABI patch Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh X-Priority: 3 In-Reply-To: <3DE6764415F645FCA29CD18BA51762F8@ad.peach.ne.jp> Date: Tue, 11 Dec 2012 11:42:58 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <33581130-C882-43EC-BA61-056CDE9DB514@bsdimp.com> References: <20121209160721.571186d8@fubar.geek.nz> <3DE6764415F645FCA29CD18BA51762F8@ad.peach.ne.jp> To: "Daisuke Aoyama" X-Mailer: Apple Mail (2.1085) X-Gm-Message-State: ALoCoQlwq/xGkjIsUd7OavHc6kiNnQMFwk20j94/G9CrwYbVSSL1V4GIRPDMRYWiDd2ipByoDhHB Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Dec 2012 18:43:07 -0000 Is __ARM_EABI__ only defined when building an arm EABI TARGET? Or is it = defined always on an ARM EABI host? Warner On Dec 11, 2012, at 11:25 AM, Daisuke Aoyama wrote: > Hi, >=20 > I found cross-build problem of the EABI patch. I'm trying to use it = for > Raspberry Pi. > According to machine/_types.h, wchar_t is unsigned int when EABI. > This patch solve "error: array of inappropriate type initialized from = string > constant" when use L"foo". >=20 > --- contrib/gcc/config/arm/freebsd.h (revision 244112) > +++ contrib/gcc/config/arm/freebsd.h (working copy) > @@ -84,6 +110,9 @@ >=20 > /* We use the GCC defaults here. */ > #undef WCHAR_TYPE > +#if defined(TARGET_ARM_EABI) || defined(__ARM_EABI__) > +#define WCHAR_TYPE "unsigned int" > +#endif >=20 > #if defined(FREEBSD_ARCH_armv6) > #undef SUBTARGET_CPU_DEFAULT >=20 >=20 > Please check. > Thank you. > --=20 > Daisuke Aoyama >=20 > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"