-
Notifications
You must be signed in to change notification settings - Fork 16
/
gcc.patch
64 lines (63 loc) · 2.13 KB
/
gcc.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
--- ../../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* | -aros* \
+ | -{{OSNAME}}* \
| -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
;;
+ *-{{OSNAME}}*)
+ 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
;;
+*-*-{{OSNAME}}*)
+ extra_parts="crtbegin.o crtend.o"
+ gas=yes
+ gnu_ld=yes
+ # Assume that newlib is being used and so __cxa_atexit is provided.
+ default_use_cxa_atexit=yes
+ ;;
*-*-elf)
# Assume that newlib is being used and so __cxa_atexit is provided.
default_use_cxa_atexit=yes
@@ -1070,6 +1077,11 @@ hppa[12]*-*-hpux11*)
use_collect2=yes
gas=yes
;;
+x86_64-*-{{OSNAME}}*)
+ tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h i386/x86-64.h {{OSNAME}}.h"
+ tmake_file="${tmake_file} i386/t-i386elf t-svr4"
+ use_fixproto=yes
+ ;;
i[34567]86-*-darwin*)
need_64bit_hwint=yes
--- ../../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-*-{{OSNAME}}*)
+ ;;
xstormy16-*-elf)
;;
xtensa-*-elf*)