cynix

x86 UNIX-like OS
git clone git://git.2f30.org/cynix
Log | Files | Refs | README | LICENSE

cynix_gcc-4.4.2.patch (2602B)


      1 diff -rupN gcc-4.4.2-orig/config.sub gcc-4.4.2/config.sub
      2 --- gcc-4.4.2-orig/config.sub	2008-12-18 03:27:27.000000000 +0000
      3 +++ gcc-4.4.2/config.sub	2010-02-09 16:06:40.000000000 +0000
      4 @@ -1257,7 +1257,7 @@ case $os in
      5  	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
      6  	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
      7  	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
      8 -	      | -aos* \
      9 +	      | -aos* | -cynix* \
     10  	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
     11  	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
     12  	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
     13 diff -rupN gcc-4.4.2-orig/gcc/config/cynix.h gcc-4.4.2/gcc/config/cynix.h
     14 --- gcc-4.4.2-orig/gcc/config/cynix.h	1970-01-01 01:00:00.000000000 +0100
     15 +++ gcc-4.4.2/gcc/config/cynix.h	2010-02-09 16:06:36.000000000 +0000
     16 @@ -0,0 +1,10 @@
     17 +#undef TARGET_OS_CPP_BUILTINS
     18 +#define TARGET_OS_CPP_BUILTINS()      \
     19 +   do {                                \
     20 +      builtin_define_std ("cynix");      \
     21 +      builtin_define_std ("unix");      \
     22 +      builtin_assert ("system=cynix");   \
     23 +      builtin_assert ("system=unix");   \
     24 +    } while(0);
     25 +#undef TARGET_VERSION
     26 +#define TARGET_VERSION fprintf(stderr, " (i386 cynix)");
     27 diff -rupN gcc-4.4.2-orig/gcc/config.gcc gcc-4.4.2/gcc/config.gcc
     28 --- gcc-4.4.2-orig/gcc/config.gcc	2009-09-13 14:01:13.000000000 +0100
     29 +++ gcc-4.4.2/gcc/config.gcc	2010-02-09 16:06:34.000000000 +0000
     30 @@ -407,6 +407,12 @@ esac
     31  
     32  # Common parts for widely ported systems.
     33  case ${target} in
     34 + *-*-cynix*)
     35 +   extra_parts="crtbegin.o crtend.o"
     36 +   gas=yes
     37 +   gnu_ld=yes
     38 +   default_use_cxa_atexit=yes
     39 +   ;;
     40  *-*-darwin*)
     41    tm_file="${tm_file} darwin.h"
     42    case ${target} in
     43 @@ -602,6 +608,11 @@ case ${target} in
     44  	then tmake_file=${cpu_type}/t-$rest
     45  	fi
     46  	;;
     47 +i[3-7]86-*-cynix*)
     48 +	tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h cynix.h"
     49 +	tmake_file="i386/t-i386elf t-svr4"
     50 +	use_fixproto=yes
     51 +	;;
     52  alpha*-*-linux*)
     53  	tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
     54  	target_cpu_default="MASK_GAS"
     55 diff -rupN gcc-4.4.2-orig/libgcc/config.host gcc-4.4.2/libgcc/config.host
     56 --- gcc-4.4.2-orig/libgcc/config.host	2009-04-17 12:58:41.000000000 +0100
     57 +++ gcc-4.4.2/libgcc/config.host	2010-02-09 16:06:41.000000000 +0000
     58 @@ -172,6 +172,8 @@ case ${host} in
     59  	then tmake_file=${cpu_type}/t-$rest
     60  	fi
     61  	;;
     62 +i[3-7]86-*-cynix*)
     63 +	;;
     64  alpha*-*-linux* | alpha*-*-gnu*)
     65  	tmake_file="${tmake_file} alpha/t-crtfm"
     66  	extra_parts="$extra_parts crtfastmath.o"