ARM EABI patch

Daisuke Aoyama aoyama at peach.ne.jp
Tue Dec 11 18:25:42 UTC 2012


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
 



More information about the freebsd-arm mailing list