[haiku-commits] buildtools: btrev43016 - in gcc/gcc/config: i386 arm rs6000 mips m68k

  • From: zooey@xxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 22 Nov 2011 16:40:34 +0100 (CET)

btrev43016 adds 1 changeset to branch 'master'
old head: ef37057d9257610d5be27de553af21f6ef926fa7
new head: 073cb9127c750d74bfb0e4812cc59c54c7f27b35

----------------------------------------------------------------------------

7 files changed, 8 insertions(+), 0 deletions(-)
gcc/gcc/config/arm/haiku.h         |    1 +
gcc/gcc/config/i386/haiku.h        |    1 +
gcc/gcc/config/i386/haiku64.h      |    2 ++
gcc/gcc/config/m68k/haiku.h        |    1 +
gcc/gcc/config/mips/haiku.h        |    1 +
gcc/gcc/config/rs6000/haiku.h      |    1 +
legacy/gcc/gcc/config/i386/haiku.h |    1 +

############################################################################

Revision:    btrev43016
Commit:      073cb9127c750d74bfb0e4812cc59c54c7f27b35
URL:         http://cgit.haiku-os.org/buildtools/commit/?id=073cb91
Author:      Oliver Tappe <zooey@xxxxxxxxxxxxxxx>
Date:        Sat Nov 19 15:45:49 2011 UTC

Define __STDC_ISO_10646__ in our gccs.

* define __STDC_ISO_10646__ to '201103' in order to indicate that
  Haiku's wchar_t supports the Universal Character Set (UCS) defined
  by the ISO 10646 standard published in March 2011.

----------------------------------------------------------------------------

diff --git a/gcc/gcc/config/arm/haiku.h b/gcc/gcc/config/arm/haiku.h
index 19dff3c..072f3df 100644
--- a/gcc/gcc/config/arm/haiku.h
+++ b/gcc/gcc/config/arm/haiku.h
@@ -56,6 +56,7 @@
       builtin_define ("__arm__");                                      \
       builtin_define ("__stdcall=__attribute__((__stdcall__))");       \
       builtin_define ("__cdecl=__attribute__((__cdecl__))");           \
+      builtin_define ("__STDC_ISO_10646__=201103L"); \
       builtin_assert ("system=haiku");                                 \
       /* Haiku apparently doesn't support merging of symbols across shared \
                 object boundaries. Hence we need to explicitly specify that \
diff --git a/gcc/gcc/config/i386/haiku.h b/gcc/gcc/config/i386/haiku.h
index 79025a8..5669a12 100644
--- a/gcc/gcc/config/i386/haiku.h
+++ b/gcc/gcc/config/i386/haiku.h
@@ -39,6 +39,7 @@ Boston, MA 02111-1307, USA.  */
        builtin_define ("_X86_");                                       \
        builtin_define ("__stdcall=__attribute__((__stdcall__))");      \
        builtin_define ("__cdecl=__attribute__((__cdecl__))");          \
+    builtin_define ("__STDC_ISO_10646__=201103L"); \
        builtin_assert ("system=haiku");                                        
\
     }                                                                  \
   while (0)
diff --git a/gcc/gcc/config/i386/haiku64.h b/gcc/gcc/config/i386/haiku64.h
index 7a0ba68..6103760 100644
--- a/gcc/gcc/config/i386/haiku64.h
+++ b/gcc/gcc/config/i386/haiku64.h
@@ -47,6 +47,7 @@ Boston, MA 02111-1307, USA.  */
        builtin_define ("__x86_64__");                                  \
        builtin_define ("__stdcall=__attribute__((__stdcall__))");      \
        builtin_define ("__cdecl=__attribute__((__cdecl__))");          \
+    builtin_define ("__STDC_ISO_10646__=201103L"); \
        builtin_assert ("system=haiku");                                \
     }                                                                  \
   while (0)
@@ -59,6 +60,7 @@ Boston, MA 02111-1307, USA.  */
        builtin_define ("__X86__");                                     \
        builtin_define ("__stdcall=__attribute__((__stdcall__))");      \
        builtin_define ("__cdecl=__attribute__((__cdecl__))");          \
+    builtin_define ("__STDC_ISO_10646__=201103L"); \
        builtin_assert ("system=haiku");                                \
     }                                                                  \
   while (0)
diff --git a/gcc/gcc/config/m68k/haiku.h b/gcc/gcc/config/m68k/haiku.h
index 0f241b1..6fe9f46 100644
--- a/gcc/gcc/config/m68k/haiku.h
+++ b/gcc/gcc/config/m68k/haiku.h
@@ -74,6 +74,7 @@ Boston, MA 02110-1301, USA.  */
        builtin_define_std ("mc68020");                                 \
        builtin_define ("__stdcall=__attribute__((__stdcall__))");      \
        builtin_define ("__cdecl=__attribute__((__cdecl__))");          \
+    builtin_define ("__STDC_ISO_10646__=201103L"); \
        builtin_assert ("system=haiku");                                \
     }                                                                  \
   while (0)
diff --git a/gcc/gcc/config/mips/haiku.h b/gcc/gcc/config/mips/haiku.h
index 5db9078..a832e52 100644
--- a/gcc/gcc/config/mips/haiku.h
+++ b/gcc/gcc/config/mips/haiku.h
@@ -32,6 +32,7 @@ Boston, MA 02111-1307, USA.  */
        builtin_define ("_MIPSEL_");                                    \
        builtin_define ("__stdcall=__attribute__((__stdcall__))");      \
        builtin_define ("__cdecl=__attribute__((__cdecl__))");          \
+    builtin_define ("__STDC_ISO_10646__=201103L"); \
        builtin_assert ("system=haiku");                                        
\
        if (flag_pic)                                                   \
          {                                                             \
diff --git a/gcc/gcc/config/rs6000/haiku.h b/gcc/gcc/config/rs6000/haiku.h
index d80b05f..cc7b77c 100644
--- a/gcc/gcc/config/rs6000/haiku.h
+++ b/gcc/gcc/config/rs6000/haiku.h
@@ -40,6 +40,7 @@ Boston, MA 02111-1307, USA.  */
        builtin_define ("__powerpc__");                                 \
        builtin_define ("__stdcall=__attribute__((__stdcall__))");      \
        builtin_define ("__cdecl=__attribute__((__cdecl__))");          \
+    builtin_define ("__STDC_ISO_10646__=201103L"); \
        builtin_assert ("system=haiku");                                        
\
        builtin_assert ("cpu=powerpc");                                 \
        builtin_assert ("machine=powerpc");                                     
\
diff --git a/legacy/gcc/gcc/config/i386/haiku.h 
b/legacy/gcc/gcc/config/i386/haiku.h
index faa2ea4..13250b9 100644
--- a/legacy/gcc/gcc/config/i386/haiku.h
+++ b/legacy/gcc/gcc/config/i386/haiku.h
@@ -159,6 +159,7 @@ Boston, MA 02111-1307, USA.  */
 -D__stdcall=__attribute__((__stdcall__)) \
 -D__cdecl=__attribute__((__cdecl__)) \
 -D__declspec(x)=__attribute__((x)) \
+-D__STDC_ISO_10646__=201103L \
 -Asystem(haiku)"
 
 #undef CPP_SPEC


Other related posts:

  • » [haiku-commits] buildtools: btrev43016 - in gcc/gcc/config: i386 arm rs6000 mips m68k - zooey