]> git.lizzy.rs Git - rust.git/commitdiff
Remove the x86_64-rumprun-netbsd target
authorSimonas Kazlauskas <git@kazlauskas.me>
Sat, 27 Feb 2021 15:55:22 +0000 (17:55 +0200)
committerSimonas Kazlauskas <git@kazlauskas.me>
Sat, 27 Feb 2021 15:55:22 +0000 (17:55 +0200)
Closes #81514

compiler/rustc_target/src/spec/mod.rs
compiler/rustc_target/src/spec/x86_64_rumprun_netbsd.rs [deleted file]
library/std/src/sys/unix/stack_overflow.rs
library/std/src/sys/unix/thread.rs
library/unwind/build.rs
src/ci/docker/host-x86_64/dist-various-1/Dockerfile
src/ci/docker/host-x86_64/dist-various-1/build-rumprun.sh [deleted file]
src/doc/rustc/src/platform-support.md
src/librustdoc/clean/cfg.rs
src/tools/build-manifest/src/main.rs

index 6cf1112820de1db7bf03c5fb07e3021d8ee68d05..b53d851e051bc2fbab5e552b9662bb117f34e12b 100644 (file)
@@ -702,7 +702,6 @@ fn to_json(&self) -> Json {
     ("powerpc-unknown-netbsd", powerpc_unknown_netbsd),
     ("sparc64-unknown-netbsd", sparc64_unknown_netbsd),
     ("x86_64-unknown-netbsd", x86_64_unknown_netbsd),
-    ("x86_64-rumprun-netbsd", x86_64_rumprun_netbsd),
 
     ("i686-unknown-haiku", i686_unknown_haiku),
     ("x86_64-unknown-haiku", x86_64_unknown_haiku),
diff --git a/compiler/rustc_target/src/spec/x86_64_rumprun_netbsd.rs b/compiler/rustc_target/src/spec/x86_64_rumprun_netbsd.rs
deleted file mode 100644 (file)
index d84a635..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-use crate::spec::{LinkerFlavor, StackProbeType, Target, TargetOptions};
-
-pub fn target() -> Target {
-    let mut base = super::netbsd_base::opts();
-    base.vendor = "rumprun".to_string();
-    base.cpu = "x86-64".to_string();
-    base.pre_link_args.get_mut(&LinkerFlavor::Gcc).unwrap().push("-m64".to_string());
-    base.linker = Some("x86_64-rumprun-netbsd-gcc".to_string());
-    base.max_atomic_width = Some(64);
-
-    base.dynamic_linking = false;
-    base.has_rpath = false;
-    base.position_independent_executables = false;
-    base.disable_redzone = true;
-    base.stack_probes = StackProbeType::InlineOrCall { min_llvm_version_for_inline: (11, 0, 1) };
-
-    Target {
-        llvm_target: "x86_64-rumprun-netbsd".to_string(),
-        pointer_width: 64,
-        data_layout: "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
-            .to_string(),
-        arch: "x86_64".to_string(),
-        options: TargetOptions { mcount: "__mcount".to_string(), ..base },
-    }
-}
index d84742053524eb95950a1727b60dcf94b9c79c23..d7bba50c76ab831cf30a2d162c239b0d9c31c567 100644 (file)
@@ -34,7 +34,7 @@ fn drop(&mut self) {
     target_os = "freebsd",
     target_os = "solaris",
     target_os = "illumos",
-    all(target_os = "netbsd", not(target_vendor = "rumprun")),
+    target_os = "netbsd",
     target_os = "openbsd"
 ))]
 mod imp {
@@ -218,7 +218,7 @@ pub unsafe fn drop_handler(handler: &mut Handler) {
     target_os = "freebsd",
     target_os = "solaris",
     target_os = "illumos",
-    all(target_os = "netbsd", not(target_vendor = "rumprun")),
+    target_os = "netbsd",
     target_os = "openbsd",
 )))]
 mod imp {
index cda17eb4bd23c8110f77db4d89a8313c5f25956a..40c9630751416208735ef7dbdd546ba3782b4456 100644 (file)
@@ -202,7 +202,7 @@ fn drop(&mut self) {
     not(target_os = "linux"),
     not(target_os = "freebsd"),
     not(target_os = "macos"),
-    not(all(target_os = "netbsd", not(target_vendor = "rumprun"))),
+    not(target_os = "netbsd"),
     not(target_os = "openbsd"),
     not(target_os = "solaris")
 ))]
@@ -222,7 +222,7 @@ pub unsafe fn init() -> Option<Guard> {
     target_os = "linux",
     target_os = "freebsd",
     target_os = "macos",
-    all(target_os = "netbsd", not(target_vendor = "rumprun")),
+    target_os = "netbsd",
     target_os = "openbsd",
     target_os = "solaris"
 ))]
index 694e6b98c82e349eed1aa6e5bf2863e0de576f76..d8bf152e4d638a1962986c841520a58873a6aa59 100644 (file)
@@ -22,8 +22,6 @@ fn main() {
         }
     } else if target.contains("freebsd") {
         println!("cargo:rustc-link-lib=gcc_s");
-    } else if target.contains("rumprun") {
-        println!("cargo:rustc-link-lib=unwind");
     } else if target.contains("netbsd") {
         println!("cargo:rustc-link-lib=gcc_s");
     } else if target.contains("openbsd") {
index 4906f183b485e1ff53443e5ecfa5fe181f55fd96..1f8f9fc518ac17dc9d59ad81c25377179b563e5a 100644 (file)
@@ -44,9 +44,6 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
 
 WORKDIR /build
 
-COPY host-x86_64/dist-various-1/build-rumprun.sh /build
-RUN ./build-rumprun.sh
-
 COPY host-x86_64/dist-various-1/install-x86_64-redox.sh /build
 RUN ./install-x86_64-redox.sh
 
@@ -112,7 +109,6 @@ ENV RUN_MAKE_TARGETS=$RUN_MAKE_TARGETS,thumbv7em-none-eabihf
 
 ENV TARGETS=asmjs-unknown-emscripten
 ENV TARGETS=$TARGETS,wasm32-unknown-emscripten
-ENV TARGETS=$TARGETS,x86_64-rumprun-netbsd
 ENV TARGETS=$TARGETS,mips-unknown-linux-musl
 ENV TARGETS=$TARGETS,mipsel-unknown-linux-musl
 ENV TARGETS=$TARGETS,mips64-unknown-linux-muslabi64
diff --git a/src/ci/docker/host-x86_64/dist-various-1/build-rumprun.sh b/src/ci/docker/host-x86_64/dist-various-1/build-rumprun.sh
deleted file mode 100755 (executable)
index bee2d7a..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/env bash
-set -ex
-
-hide_output() {
-  set +x
-  on_err="
-echo ERROR: An error was encountered with the build.
-cat /tmp/build.log
-exit 1
-"
-  trap "$on_err" ERR
-  bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
-  PING_LOOP_PID=$!
-  "$@" &> /tmp/build.log
-  trap - ERR
-  kill $PING_LOOP_PID
-  rm /tmp/build.log
-  set -x
-}
-
-git clone https://github.com/rumpkernel/rumprun
-cd rumprun
-git reset --hard b04d42225a12a6fae57a78a9c1cf23642e46cd00
-git submodule update --init
-
-# Disable -Werror, to avoid breaking the build with newer compilers.
-CC=cc NOGCCERROR=1 hide_output ./build-rr.sh -d /usr/local hw
-cd ..
-rm -rf rumprun
index ff44028390c2713cc8b0f7b4a982eb8bfc6f39b1..a4ace91730ec352b1f6c378927ddc669c928e45d 100644 (file)
@@ -133,7 +133,6 @@ target | std | host | notes
 `x86_64-fortanix-unknown-sgx` | ✓ |  | [Fortanix ABI] for 64-bit Intel SGX
 `x86_64-fuchsia` | ✓ |  | 64-bit Fuchsia
 `x86_64-linux-android` | ✓ |  | 64-bit x86 Android
-`x86_64-rumprun-netbsd` | ✓ |  | 64-bit NetBSD Rump Kernel
 `x86_64-sun-solaris` | ✓ |  | 64-bit Solaris 10/11, illumos
 `x86_64-unknown-freebsd` | ✓ | ✓ | 64-bit FreeBSD
 `x86_64-unknown-illumos` | ✓ | ✓ | illumos
index 444b73246da4b06a919640485746e54d4ba224d0..c544d1f41ce0b6b8b279782bb3fcda083c1e0731 100644 (file)
@@ -505,7 +505,6 @@ fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
                     (sym::target_vendor, Some(vendor)) => match &*vendor.as_str() {
                         "apple" => "Apple",
                         "pc" => "PC",
-                        "rumprun" => "Rumprun",
                         "sun" => "Sun",
                         "fortanix" => "Fortanix",
                         _ => "",
index d7c2fb8c8b893b740c81fb3d066df59e443a0906..4e605caafe22e95cd74118f629c43b9ba23f9bad 100644 (file)
     "x86_64-linux-android",
     "x86_64-pc-windows-gnu",
     "x86_64-pc-windows-msvc",
-    "x86_64-rumprun-netbsd",
     "x86_64-sun-solaris",
     "x86_64-pc-solaris",
     "x86_64-unknown-freebsd",