init: init2 doesn't idle anymore
[meinos.git] / gcc-4.2.2-meinos.patch
blobd22088d63cc90847051cbfd882168f40a93101e5
1 diff -urNp gcc-4.2.2/config.sub gcc-4.2.2-meinos//config.sub
2 --- gcc-4.2.2/config.sub 2006-10-16 05:27:17.000000000 +0200
3 +++ gcc-4.2.2-meinos//config.sub 2008-08-03 20:39:31.000000000 +0200
4 @@ -120,7 +120,7 @@ esac
5 # Here we must recognize all the valid KERNEL-OS combinations.
6 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
7 case $maybe_os in
8 - nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
9 + meinos* | nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
10 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
11 storm-chaos* | os2-emx* | rtmk-nova*)
12 os=-$maybe_os
13 @@ -1200,7 +1200,7 @@ case $os in
14 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
15 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
16 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
17 - | -aos* \
18 + | -aos* | -meinos* \
19 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
20 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
21 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
22 diff -urNp gcc-4.2.2/gcc/config/meinos.h gcc-4.2.2-meinos//gcc/config/meinos.h
23 --- gcc-4.2.2/gcc/config/meinos.h 1970-01-01 01:00:00.000000000 +0100
24 +++ gcc-4.2.2-meinos//gcc/config/meinos.h 2008-08-27 19:44:41.000000000 +0200
25 @@ -0,0 +1,11 @@
26 +#undef TARGET_OS_CPP_BUILTINS
27 +#define TARGET_OS_CPP_BUILTINS() \
28 + do { \
29 + builtin_define_std ("meinos"); \
30 + builtin_define_std ("unix"); \
31 + builtin_assert ("system=meinos"); \
32 + builtin_assert ("system=unix"); \
33 + } while(0);
35 +#undef TARGET_VERSION
36 +#define TARGET_VERSION fprintf(stderr, " (i386 meinos)");
37 diff -urNp gcc-4.2.2/gcc/config.gcc gcc-4.2.2-meinos//gcc/config.gcc
38 --- gcc-4.2.2/gcc/config.gcc 2007-09-01 17:28:30.000000000 +0200
39 +++ gcc-4.2.2-meinos//gcc/config.gcc 2008-08-10 12:42:33.000000000 +0200
40 @@ -362,6 +362,12 @@ esac
42 # Common parts for widely ported systems.
43 case ${target} in
44 +*-*-meinos*)
45 + extra_parts="crtbegin.o crtend.o libmeinos.a"
46 + gas=yes
47 + gnu_ld=yes
48 + default_use_cxa_atexit=no
49 + ;;
50 *-*-darwin*)
51 tm_file="${tm_file} darwin.h"
52 case ${target} in
53 @@ -576,6 +582,11 @@ esac
55 case ${target} in
56 # Support site-specific machine types.
57 +i[3-7]86-*-meinos*)
58 + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h meinos.h"
59 + tmake_file="i386/t-i386elf t-svr4"
60 + use_fixproto=yes
61 + ;;
62 *local*)
63 rest=`echo ${target} | sed -e "s/$cpu_type-//"`
64 tm_file=${cpu_type}/$rest.h