From 735af2d623d1ffbb6f95a4fbcaeb367afddeb129 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Tue, 27 Jul 2010 19:20:25 +0000 Subject: [PATCH] * 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 --- 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(-) diff --git a/gcc/gcc/config/arm/haiku.h b/gcc/gcc/config/arm/haiku.h index df1d39b..bd9abe3 100644 --- a/gcc/gcc/config/arm/haiku.h +++ b/gcc/gcc/config/arm/haiku.h @@ -63,6 +63,7 @@ instead of by pointer. */ \ builtin_define ("__GXX_MERGED_TYPEINFO_NAMES=0"); \ /*builtin_define ("__GXX_TYPEINFO_EQUALITY_INLINE=0"); done in bpabi: */\ + 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" diff --git a/gcc/gcc/config/i386/haiku.h b/gcc/gcc/config/i386/haiku.h index 335c414..2181d4e 100644 --- a/gcc/gcc/config/i386/haiku.h +++ b/gcc/gcc/config/i386/haiku.h @@ -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) diff --git a/gcc/gcc/config/i386/haiku64.h b/gcc/gcc/config/i386/haiku64.h index 24a44ad..89ce57b 100644 --- a/gcc/gcc/config/i386/haiku64.h +++ b/gcc/gcc/config/i386/haiku64.h @@ -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 diff --git a/gcc/gcc/config/mips/haiku.h b/gcc/gcc/config/mips/haiku.h index c4029b2..a9841da 100644 --- a/gcc/gcc/config/mips/haiku.h +++ b/gcc/gcc/config/mips/haiku.h @@ -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) diff --git a/gcc/gcc/config/rs6000/haiku.h b/gcc/gcc/config/rs6000/haiku.h index d306faa..24cb601 100644 --- a/gcc/gcc/config/rs6000/haiku.h +++ b/gcc/gcc/config/rs6000/haiku.h @@ -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) diff --git a/legacy/gcc/gcc/config/i386/haiku.h b/legacy/gcc/gcc/config/i386/haiku.h index faa2ea4..2be1f2c 100644 --- a/legacy/gcc/gcc/config/i386/haiku.h +++ b/legacy/gcc/gcc/config/i386/haiku.h @@ -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 -- gitore 0.2.2