Permalink
Browse files

Add Redox support

  • Loading branch information...
jackpot51 committed Nov 2, 2016
1 parent c5d9a66 commit 37820fd5d9a7c9037a4a1be0816610cbd00ae59d
Showing with 6,030 additions and 2 deletions.
  1. +2 −0 fixincludes/mkfixinc.sh
  2. +13 −2 gcc/config.gcc
  3. +24 −0 gcc/config/redox.h
  4. +8 −0 libgcc/config.host
  5. +5,977 −0 libstdc++-v3/configure
  6. +6 −0 libstdc++-v3/crossconfig.m4
@@ -12,6 +12,8 @@ target=fixinc.sh
# Check for special fix rules for particular targets
case $machine in
i?86-*-cygwin* | \
i?86-*-redox* | \
x86_64-*-redox* | \
i?86-*-mingw32* | \
x86_64-*-mingw32* | \
powerpc-*-eabisim* | \
@@ -174,7 +174,7 @@
# the --with-sysroot configure option or the
# --sysroot command line option is used this
# will be relative to the sysroot.
# target_type_format_char
# target_type_format_char
# The default character to be used for formatting
# the attribute in a
# .type symbol_name, ${t_t_f_c}<property>
@@ -773,6 +773,11 @@ case ${target} in
tmake_file="${tmake_file} t-glibc"
target_has_targetcm=yes
;;
*-*-redox*)
gas=yes
gnu_ld=yes
default_use_cxa_atexit=yes
;;
*-*-netbsd*)
tmake_file="t-slibgcc"
gas=yes
@@ -1608,6 +1613,12 @@ x86_64-*-linux* | x86_64-*-kfreebsd*-gnu)
done
TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's/^,//'`
;;
i[34567]86-*-redox*)
tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h redox.h newlib-stdint.h"
;;
x86_64-*-redox*)
tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h i386/x86-64.h redox.h newlib-stdint.h"
;;
i[34567]86-pc-msdosdjgpp*)
xm_file=i386/xm-djgpp.h
tm_file="dbxcoff.h ${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/djgpp.h i386/djgpp-stdint.h"
@@ -3387,7 +3398,7 @@ if test x$with_cpu = x ; then
with_cpu=8548
else
with_cpu=8540
fi
fi
;;
sparc*-*-*)
case ${target} in
@@ -0,0 +1,24 @@
#undef TARGET_REDOX
#define TARGET_REDOX 1
#undef LIB_SPEC
#define LIB_SPEC "-lc"
#undef STARTFILE_SPEC
#define STARTFILE_SPEC "crt0.o%s"
#undef ENDFILE_SPEC
#define ENDFILE_SPEC ""
#undef NO_IMPLICIT_EXTERN_C
#define NO_IMPLICIT_EXTERN_C 1
#undef TARGET_OS_CPP_BUILTINS
#define TARGET_OS_CPP_BUILTINS() \
do { \
builtin_define ("__redox__"); \
builtin_define ("__unix__"); \
builtin_assert ("system=redox"); \
builtin_assert ("system=unix"); \
builtin_assert ("system=posix"); \
} while(0);
@@ -636,6 +636,14 @@ x86_64-*-kfreebsd*-gnu)
tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
tm_file="${tm_file} i386/elf-lib.h"
;;
i[34567]86-*-redox*)
extra_parts="$extra_parts crtbegin.o crtend.o"
tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
;;
x86_64-*-redox*)
extra_parts="$extra_parts crtbegin.o crtend.o"
tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
;;
i[34567]86-pc-msdosdjgpp*)
;;
i[34567]86-*-lynxos*)
Oops, something went wrong.

0 comments on commit 37820fd

Please sign in to comment.