* added standard define __STDC_ISO_10646__ to all compiler configurations, indicating that haiku uses ISO_10646 in wchar_t (in our case: UTF-32)
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@37775 a95241bf-73f2-0310-859d-f6bbb57e9c96
Diff
gcc/gcc/config/arm/haiku.h | 3 ++-
gcc/gcc/config/i386/haiku.h | 1 +
gcc/gcc/config/i386/haiku64.h | 6 +++++-
gcc/gcc/config/mips/haiku.h | 1 +
gcc/gcc/config/rs6000/haiku.h | 1 +
legacy/gcc/gcc/config/i386/haiku.h | 1 +
6 files changed, 10 insertions(+), 3 deletions(-)
@@ -63,6 +63,7 @@
instead of by pointer. */ \
builtin_define ("__GXX_MERGED_TYPEINFO_NAMES=0"); \
\
builtin_define ("__STDC_ISO_10646__"); \
TARGET_BPABI_CPP_BUILTINS(); \
} \
while (0)
@@ -75,5 +76,5 @@
#undef LINK_SPEC
#define LINK_SPEC "%{!o*:-o %b} -m armelf -shared -no-undefined -Bsymbolic %{nostart:-e 0} \
%{mbig-endian:-EB} %{mlittle-endian:-EL} -X"
%{mbig-endian:-EB} %{mlittle-endian:-EL} -X"
@@ -46,6 +46,7 @@
instead of by pointer. */ \
builtin_define ("__GXX_MERGED_TYPEINFO_NAMES=0"); \
builtin_define ("__GXX_TYPEINFO_EQUALITY_INLINE=0"); \
builtin_define ("__STDC_ISO_10646__"); \
} \
while (0)
@@ -27,9 +27,9 @@
#endif
/* The SVR4 ABI for the i386 says that records and unions are returned
* in memory.
* in memory.
*
* TODO: Linux64 doesn't use pcc_struct_return scheme. Does haiku?
* TODO: Linux64 doesn't use pcc_struct_return scheme. Does haiku?
* If not this could be removed.
*/
#undef DEFAULT_PCC_STRUCT_RETURN
@@ -54,6 +54,7 @@
instead of by pointer. */ \
builtin_define ("__GXX_MERGED_TYPEINFO_NAMES=0"); \
builtin_define ("__GXX_TYPEINFO_EQUALITY_INLINE=0"); \
builtin_define ("__STDC_ISO_10646__"); \
} \
while (0)
#else
@@ -72,6 +73,7 @@
instead of by pointer. */ \
builtin_define ("__GXX_MERGED_TYPEINFO_NAMES=0"); \
builtin_define ("__GXX_TYPEINFO_EQUALITY_INLINE=0"); \
builtin_define ("__STDC_ISO_10646__"); \
} \
while (0)
#endif
@@ -44,6 +44,7 @@
instead of by pointer. */ \
builtin_define ("__GXX_MERGED_TYPEINFO_NAMES=0"); \
builtin_define ("__GXX_TYPEINFO_EQUALITY_INLINE=0"); \
builtin_define ("__STDC_ISO_10646__"); \
} \
while (0)
@@ -50,6 +50,7 @@
instead of by pointer. */ \
builtin_define ("__GXX_MERGED_TYPEINFO_NAMES=0"); \
builtin_define ("__GXX_TYPEINFO_EQUALITY_INLINE=0"); \
builtin_define ("__STDC_ISO_10646__"); \
} \
while (0)
@@ -159,6 +159,7 @@
-D__stdcall=__attribute__((__stdcall__)) \
-D__cdecl=__attribute__((__cdecl__)) \
-D__declspec(x)=__attribute__((x)) \
-D__STDC_ISO_10646__ \
-Asystem(haiku)"
#undef CPP_SPEC