From 154c69bcf0369cbc80d19fe55c0f15ee27df5141 Mon Sep 17 00:00:00 2001 From: wilkie Date: Sat, 3 Apr 2010 16:41:46 -0400 Subject: [PATCH] Fixed gcc patch --- gcc-xomb.patch | 102 ++++++++++++++++++++----------------------------- 1 file changed, 42 insertions(+), 60 deletions(-) diff --git a/gcc-xomb.patch b/gcc-xomb.patch index 3697091..41679cc 100644 --- a/gcc-xomb.patch +++ b/gcc-xomb.patch @@ -1,21 +1,31 @@ -Index: libgcc/config.host -=================================================================== ---- libgcc/config.host (revision 151661) -+++ libgcc/config.host (working copy) -@@ -549,6 +549,8 @@ - ;; - vax-*-openbsd*) - ;; -+x86_64-*-xomb*) -+ ;; - xstormy16-*-elf) - ;; - xtensa*-*-elf*) -Index: gcc/config.gcc -=================================================================== ---- gcc/config.gcc (revision 151661) -+++ gcc/config.gcc (working copy) -@@ -594,6 +594,13 @@ +--- ../../gcc-4.3.3/config.sub 2008-01-22 21:37:40.000000000 -0500 ++++ config.sub 2010-04-03 16:36:15.000000000 -0400 +@@ -1240,6 +1240,7 @@ case $os in + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ + | -aos* \ ++ | -xomb* \ + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ +--- ../../gcc-4.3.3/libstdc++-v3/crossconfig.m4 2008-01-14 19:15:43.000000000 -0500 ++++ libstdc++-v3/crossconfig.m4 2010-04-03 16:35:47.000000000 -0400 +@@ -393,6 +393,12 @@ case "${host}" in + AC_DEFINE(HAVE_ISNANL) + fi + ;; ++ *-xomb*) ++ AC_CHECK_HEADERS([sys/types.h locale.h float.h]) ++ GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT ++ GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT ++ GLIBCXX_CHECK_STDLIB_SUPPORT ++ ;; + *-vxworks) + AC_DEFINE(HAVE_MMAP) + AC_DEFINE(HAVE_ACOSF) +--- ../../gcc-4.3.3/gcc/config.gcc 2008-11-20 12:09:53.000000000 -0500 ++++ gcc/config.gcc 2010-04-03 16:35:47.000000000 -0400 +@@ -605,6 +605,13 @@ case ${target} in *) echo 'Unknown thread configuration for VxWorks'; exit 1 ;; esac ;; @@ -29,9 +39,9 @@ Index: gcc/config.gcc *-*-elf) # Assume that newlib is being used and so __cxa_atexit is provided. default_use_cxa_atexit=yes -@@ -1071,6 +1078,11 @@ - ;; - esac +@@ -1070,6 +1077,11 @@ hppa[12]*-*-hpux11*) + use_collect2=yes + gas=yes ;; +x86_64-*-xomb*) + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h i386/x86-64.h xomb.h" @@ -41,42 +51,14 @@ Index: gcc/config.gcc i[34567]86-*-darwin*) need_64bit_hwint=yes -Index: config.sub -=================================================================== ---- config.sub (revision 151661) -+++ config.sub (working copy) -@@ -4,7 +4,7 @@ - # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 - # Free Software Foundation, Inc. - --timestamp='2009-08-17' -+timestamp='2009-09-12' - - # This file is (in principle) common to ALL GNU software. - # The presence of a machine in this file suggests that SOME GNU software -@@ -1274,7 +1274,7 @@ - | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ - | -kopensolaris* \ - | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ -- | -aos* | -aros* \ -+ | -aos* | -aros* | -xomb* \ - | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ - | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ - | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ -Index: libstdc++-v3/crossconfig.m4 -=================================================================== ---- libstdc++-v3/crossconfig.m4 (revision 151661) -+++ libstdc++-v3/crossconfig.m4 (working copy) -@@ -243,6 +243,12 @@ - AC_DEFINE(HAVE_ISNANL) - fi - ;; -+ *-xomb*) -+ AC_CHECK_HEADERS([sys/types.h locale.h float.h]) -+ GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT -+ GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT -+ GLIBCXX_CHECK_STDLIB_SUPPORT -+ ;; - *-vxworks) - AC_DEFINE(HAVE_ACOSF) - AC_DEFINE(HAVE_ASINF) +--- ../../gcc-4.3.3/libgcc/config.host 2008-11-20 12:09:53.000000000 -0500 ++++ libgcc/config.host 2010-04-03 16:35:47.000000000 -0400 +@@ -637,6 +637,8 @@ xscale-*-elf) + ;; + xscale-*-coff) + ;; ++x86_64-*-xomb*) ++ ;; + xstormy16-*-elf) + ;; + xtensa-*-elf*)