ARM EABI patch
Warner Losh
imp at bsdimp.com
Tue Dec 11 18:43:07 UTC 2012
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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
More information about the freebsd-arm
mailing list