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>

next in thread | previous in thread | raw e-mail | index | archive | help
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"




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