Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Dec 2012 11:42:58 -0700
From:      Warner Losh <imp@bsdimp.com>
To:        "Daisuke Aoyama" <aoyama@peach.ne.jp>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: ARM EABI patch
Message-ID:  <33581130-C882-43EC-BA61-056CDE9DB514@bsdimp.com>
In-Reply-To: <3DE6764415F645FCA29CD18BA51762F8@ad.peach.ne.jp>
References:  <20121209160721.571186d8@fubar.geek.nz> <3DE6764415F645FCA29CD18BA51762F8@ad.peach.ne.jp>

index | next in thread | previous in thread | raw e-mail

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,
> 
> 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".
> 
> --- contrib/gcc/config/arm/freebsd.h    (revision 244112)
> +++ contrib/gcc/config/arm/freebsd.h    (working copy)
> @@ -84,6 +110,9 @@
> 
> /* We use the GCC defaults here.  */
> #undef WCHAR_TYPE
> +#if defined(TARGET_ARM_EABI) || defined(__ARM_EABI__)
> +#define WCHAR_TYPE "unsigned int"
> +#endif
> 
> #if defined(FREEBSD_ARCH_armv6)
> #undef  SUBTARGET_CPU_DEFAULT
> 
> 
> Please check.
> Thank you.
> -- 
> Daisuke Aoyama
> 
> _______________________________________________
> 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"



help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?33581130-C882-43EC-BA61-056CDE9DB514>