Date: Wed, 12 Dec 2012 03:25:31 +0900 From: "Daisuke Aoyama" <aoyama@peach.ne.jp> To: "Andrew Turner" <andrew@fubar.geek.nz>, <freebsd-arm@freebsd.org> Subject: Re: ARM EABI patch Message-ID: <3DE6764415F645FCA29CD18BA51762F8@ad.peach.ne.jp> In-Reply-To: <20121209160721.571186d8@fubar.geek.nz> References: <20121209160721.571186d8@fubar.geek.nz>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DE6764415F645FCA29CD18BA51762F8>