diff options
Diffstat (limited to 'tools/diffs/gccn.diff')
| -rw-r--r-- | tools/diffs/gccn.diff | 286 |
1 files changed, 0 insertions, 286 deletions
diff --git a/tools/diffs/gccn.diff b/tools/diffs/gccn.diff deleted file mode 100644 index 67de60d..0000000 --- a/tools/diffs/gccn.diff +++ /dev/null @@ -1,286 +0,0 @@ -diff --git gcc-host-clean/fixincludes/mkfixinc.sh gcc-host-workdir/fixincludes/mkfixinc.sh -index 7112f4d..7aadf83 100755 ---- gcc-host-clean/fixincludes/mkfixinc.sh -+++ gcc-host-workdir/fixincludes/mkfixinc.sh -@@ -12,6 +12,7 @@ target=fixinc.sh - # Check for special fix rules for particular targets - case $machine in - i?86-*-cygwin* | \ -+ *-mlibc* | \ - *-mingw32* | \ - powerpc-*-eabisim* | \ - powerpc-*-eabi* | \ -diff --git gcc-host-workdir/gcc/config/i386/orange.h gcc-host-workdir/gcc/config/i386/orange.h -new file mode 100644 -index 0000000..e3017a9 ---- /dev/null -+++ gcc-host-workdir/gcc/config/i386/orange.h -@@ -0,0 +1,30 @@ -+#undef TARGET_ORANGE -+#define TARGET_ORANGE 1 -+ -+#undef LIB_SPEC -+#define LIB_SPEC "-lc" -+ -+#undef STARTFILE_SPEC -+#define STARTFILE_SPEC "%{!shared: %{static-pie|pie|!no-pie:Scrt1.o%s;:crt1.o%s}} crti.o%s %{shared|static-pie|pie|!no-pie:crtbeginS.o%s;:crtbegin.o%s}" -+ -+#undef ENDFILE_SPEC -+#define ENDFILE_SPEC "%{shared|static-pie|pie|!no-pie:crtendS.o%s;:crtend.o%s} crtn.o%s" -+ -+#define GNU_USER_LINK_EMULATION32 "elf_i386" -+#define GNU_USER_LINK_EMULATION64 "elf_x86_64" -+#define GNU_USER_LINK_EMULATIONX32 "elf32_x86_64" -+ -+#define GNU_USER_DYNAMIC_LINKER32 "/does_not_exist" -+#define GNU_USER_DYNAMIC_LINKER64 "/usr/lib/ld.so" -+#define GNU_USER_DYNAMIC_LINKERX32 "/does_not_exist" -+ -+#undef TARGET_OS_CPP_BUILTINS -+#define TARGET_OS_CPP_BUILTINS() \ -+ do { \ -+ builtin_define ("__orange__"); \ -+ builtin_define ("__mlibc__"); \ -+ builtin_define ("__unix__"); \ -+ builtin_assert ("system=orange"); \ -+ builtin_assert ("system=unix"); \ -+ builtin_assert ("system=posix"); \ -+ } while (0); -diff --git gcc-host-workdir/gcc/config/riscv/orange.h gcc-host-workdir/gcc/config/riscv/orange.h -new file mode 100644 -index 0000000..5fd4f00 ---- /dev/null -+++ gcc-host-workdir/gcc/config/riscv/orange.h -@@ -0,0 +1,46 @@ -+#undef TARGET_ORANGE -+#define TARGET_ORANGE 1 -+ -+#undef LIB_SPEC -+#define LIB_SPEC "-lc" -+ -+#define LD_EMUL_SUFFIX \ -+ "%{mabi=lp64d:}" \ -+ "%{mabi=lp64f:_lp64f}" \ -+ "%{mabi=lp64:_lp64}" \ -+ "%{mabi=ilp32d:}" \ -+ "%{mabi=ilp32f:_ilp32f}" \ -+ "%{mabi=ilp32:_ilp32}" -+ -+#define GNU_USER_LINK_EMULATION "elf64lriscv" -+#define GNU_USER_DYNAMIC_LINKER "/usr/lib/ld.so" -+ -+#define LINK_SPEC "\ -+-melf" XLEN_SPEC DEFAULT_ENDIAN_SPEC "riscv" LD_EMUL_SUFFIX " \ -+%{mno-relax:--no-relax} \ -+%{mbig-endian:-EB} \ -+%{mlittle-endian:-EL} \ -+%{shared} \ -+ %{!shared: \ -+ %{!static: \ -+ %{!static-pie: \ -+ %{rdynamic:-export-dynamic} \ -+ -dynamic-linker " GNU_USER_DYNAMIC_LINKER "}} \ -+ %{static:-static} %{static-pie:-static -pie --no-dynamic-linker -z text}}" -+ -+#undef STARTFILE_SPEC -+#define STARTFILE_SPEC "%{!shared: %{static-pie|pie|!no-pie:Scrt1.o%s;:crt1.o%s}} crti.o%s %{shared|static-pie|pie|!no-pie:crtbeginS.o%s;:crtbegin.o%s}" -+ -+#undef ENDFILE_SPEC -+#define ENDFILE_SPEC "%{shared|static-pie|pie|!no-pie:crtendS.o%s;:crtend.o%s} crtn.o%s" -+ -+#undef TARGET_OS_CPP_BUILTINS -+#define TARGET_OS_CPP_BUILTINS() \ -+ do { \ -+ builtin_define ("__orange__"); \ -+ builtin_define ("__mlibc__"); \ -+ builtin_define ("__unix__"); \ -+ builtin_assert ("system=orange"); \ -+ builtin_assert ("system=unix"); \ -+ builtin_assert ("system=posix"); \ -+ } while (0); -diff --git gcc-host-clean/gcc/config.build gcc-host-workdir/gcc/config.build -index 7c80a0b..8fac7e4 100644 ---- gcc-host-clean/gcc/config.build -+++ gcc-host-workdir/gcc/config.build -@@ -45,7 +45,7 @@ - build_xm_file= - build_xm_defines= - build_exeext= --build_install_headers_dir=install-headers-tar -+build_install_headers_dir=install-headers-cp - build_file_translate= - - # System-specific settings. -diff --git gcc-host-clean/gcc/config.gcc gcc-host-workdir/gcc/config.gcc -index 087aaa7..0bee278 100644 ---- gcc-host-clean/gcc/config.gcc -+++ gcc-host-workdir/gcc/config.gcc -@@ -879,6 +879,15 @@ case ${target} in - rust_target_objs="${rust_target_objs} freebsd-rust.o" - target_has_targetrustm=yes - ;; -+*-*-*-mlibc) -+ extra_options="$extra_options gnu-user.opt" -+ gas=yes -+ gnu_ld=yes -+ default_use_cxa_atexit=yes -+ use_gcc_stdint=wrap -+ tmake_file="${tmake_file} t-slibgcc" -+ thread_file='posix' -+ ;; - *-*-fuchsia*) - native_system_header_dir=/include - tmake_file="t-fuchsia" -@@ -2320,6 +2329,9 @@ i[34567]86-*-mingw* | x86_64-*-mingw*) - ;; - esac - ;; -+x86_64-*-orange*) -+ tm_file="${tm_file} i386/unix.h i386/att.h elfos.h gnu-user.h glibc-stdint.h i386/x86-64.h i386/gnu-user-common.h i386/gnu-user64.h i386/orange.h" -+ ;; - x86_64-*-fuchsia*) - tmake_file="${tmake_file} i386/t-x86_64-elf" - tm_file="${tm_file} i386/unix.h i386/att.h elfos.h newlib-stdint.h i386/i386elf.h i386/x86-64.h fuchsia.h" -@@ -2519,6 +2531,13 @@ microblaze*-*-elf) - cxx_target_objs="${cxx_target_objs} microblaze-c.o" - tmake_file="${tmake_file} microblaze/t-microblaze" - ;; -+riscv*-*-orange*) -+ tm_file="${tm_file} elfos.h gnu-user.h glibc-stdint.h riscv/orange.h" -+ tmake_file="${tmake_file} riscv/t-riscv" -+ gnu_ld=yes -+ gas=yes -+ gcc_cv_initfini_array=yes -+ ;; - riscv*-*-linux*) - tm_file="elfos.h gnu-user.h linux.h glibc-stdint.h ${tm_file} riscv/linux.h" - case "x${enable_multilib}" in -diff --git gcc-host-clean/gcc/cp/module.cc gcc-host-workdir/gcc/cp/module.cc -index 1deadcc..9b72332 100644 ---- gcc-host-clean/gcc/cp/module.cc -+++ gcc-host-workdir/gcc/cp/module.cc -@@ -1697,8 +1697,10 @@ elf_in::defrost (const char *name) - set_error (errno); - else - { -+#ifndef __orange__ - if (madvise (mapping, hdr.pos, MADV_RANDOM)) - goto fail; -+#endif - - /* These buffers are never NULL in this case. */ - strtab.buffer = mapping + strtab.pos; -@@ -1808,8 +1810,10 @@ elf_in::begin (location_t loc) - } - /* We'll be hopping over this randomly. Some systems declare the - first parm as char *, and other declare it as void *. */ -+#ifndef __orange__ - if (madvise (reinterpret_cast <char *> (mapping), size, MADV_RANDOM)) - goto fail; -+#endif - - hdr.buffer = (char *)mapping; - #else -diff --git gcc-host-clean/libatomic/configure.tgt gcc-host-workdir/libatomic/configure.tgt -index 6db039d..e4fc391 100644 ---- gcc-host-clean/libatomic/configure.tgt -+++ gcc-host-workdir/libatomic/configure.tgt -@@ -151,7 +151,7 @@ case "${target}" in - *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu \ - | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly* \ - | *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11* \ -- | *-*-darwin* | *-*-aix* | *-*-cygwin*) -+ | *-*-darwin* | *-*-aix* | *-*-cygwin* | *-*-mlibc*) - # POSIX system. The OS is supported. - config_path="${config_path} posix" - ;; -diff --git gcc-host-clean/libcpp/Makefile.in gcc-host-workdir/libcpp/Makefile.in -index bb07e46..821fe80 100644 ---- gcc-host-clean/libcpp/Makefile.in -+++ gcc-host-workdir/libcpp/Makefile.in -@@ -32,10 +32,10 @@ AUTOCONF = @AUTOCONF@ - AUTOHEADER = @AUTOHEADER@ - CATALOGS = $(patsubst %,po/%,@CATALOGS@) - CC = @CC@ --CFLAGS = @CFLAGS@ -+override CFLAGS := @CFLAGS@ - WARN_CFLAGS = @warn@ @c_warn@ @WARN_PEDANTIC@ @WERROR@ - CXX = @CXX@ --CXXFLAGS = @CXXFLAGS@ -+override CXXFLAGS := @CXXFLAGS@ - WARN_CXXFLAGS = @warn@ @WARN_PEDANTIC@ @WERROR@ - CPP = @CPP@ - CPPFLAGS = @CPPFLAGS@ -@@ -45,7 +45,7 @@ INCINTL = @INCINTL@ - INSTALL_DATA = @INSTALL_DATA@ - INSTALL_PROGRAM = @INSTALL_PROGRAM@ - INSTALL_SCRIPT = @INSTALL_SCRIPT@ --LDFLAGS = @LDFLAGS@ -+override LDFLAGS := @LDFLAGS@ - LIBICONV = @LIBICONV@ - LIBINTL = @LIBINTL@ - PACKAGE = @PACKAGE@ -diff --git gcc-host-clean/libgcc/config.host gcc-host-workdir/libgcc/config.host -index 6a88ee5..86bd7f3 100644 ---- gcc-host-clean/libgcc/config.host -+++ gcc-host-workdir/libgcc/config.host -@@ -310,6 +310,11 @@ case ${host} in - tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-fuchsia" - extra_parts="crtbegin.o crtend.o" - ;; -+*-*-*-mlibc) -+ extra_parts="$extra_parts crtbegin.o crtbeginS.o crtend.o crtendS.o" -+ tmake_file="$tmake_file t-crtstuff-pic" -+ tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-libgcc-pic" -+ ;; - *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu | *-*-uclinuxfdpiceabi) - tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-linux" - extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" -@@ -767,6 +772,10 @@ x86_64-*-elf* | x86_64-*-rtems*) - x86_64-*-fuchsia*) - tmake_file="$tmake_file t-libgcc-pic" - ;; -+x86_64-*-*-mlibc) -+ extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" -+ tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules" -+ ;; - i[34567]86-*-dragonfly*) - tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff" - md_unwind_header=i386/dragonfly-unwind.h -@@ -1349,6 +1358,10 @@ pru-*-*) - tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix pru/t-pru" - tm_file="$tm_file pru/pru-abi.h" - ;; -+riscv*-*-mlibc*) -+ tmake_file="${tmake_file} riscv/t-crtstuff riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address} t-slibgcc-libgcc" -+ extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o" -+ ;; - riscv*-*-linux*) - tmake_file="${tmake_file} riscv/t-crtstuff riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address} t-slibgcc-libgcc" - extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o" -diff --git gcc-host-clean/libstdc++-v3/configure gcc-host-workdir/libstdc++-v3/configure -index 819a1d8..52df448 100755 ---- gcc-host-clean/libstdc++-v3/configure -+++ gcc-host-workdir/libstdc++-v3/configure -@@ -38856,7 +38856,7 @@ $as_echo "#define HAVE_TLS 1" >>confdefs.h - - fi - ;; -- *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-cygwin* | *-solaris*) -+ *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-cygwin* | *-solaris* | *-mlibc*) - - # All these tests are for C++; save the language and the compiler flags. - # The CXXFLAGS thing is suspicious, but based on similar bits previously -diff --git gcc-host-clean/libstdc++-v3/include/bits/ios_base.h gcc-host-workdir/libstdc++-v3/include/bits/ios_base.h -index b94b2cd..1a5eaa5 100644 ---- gcc-host-clean/libstdc++-v3/include/bits/ios_base.h -+++ gcc-host-workdir/libstdc++-v3/include/bits/ios_base.h -@@ -225,7 +225,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION - - enum _Ios_Seekdir - { -- _S_beg = 0, -+ _S_beg = 1, - _S_cur = _GLIBCXX_STDIO_SEEK_CUR, - _S_end = _GLIBCXX_STDIO_SEEK_END, - _S_ios_seekdir_end = 1L << 16
\ No newline at end of file |
