Author: Brad Smith Date: 2023-09-25T09:43:10-04:00 New Revision: c1300efc78a17374065744c8985b4598fb8c3166
URL: https://github.com/llvm/llvm-project/commit/c1300efc78a17374065744c8985b4598fb8c3166 DIFF: https://github.com/llvm/llvm-project/commit/c1300efc78a17374065744c8985b4598fb8c3166.diff LOG: [Driver] Remove FreeBSD/riscv32 support (#67277) FreeBSD does not support riscv32 and has no intention of doing so. Added: Modified: clang/lib/Basic/Targets.cpp clang/lib/Driver/ToolChains/FreeBSD.cpp clang/test/Driver/freebsd.c clang/test/Preprocessor/predefined-macros-no-warnings.c Removed: ################################################################################ diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index 35d1d0d2c45c530..80822f65662850d 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -430,9 +430,6 @@ std::unique_ptr<TargetInfo> AllocateTarget(const llvm::Triple &Triple, case llvm::Triple::riscv32: switch (os) { - case llvm::Triple::FreeBSD: - return std::make_unique<FreeBSDTargetInfo<RISCV32TargetInfo>>(Triple, - Opts); case llvm::Triple::NetBSD: return std::make_unique<NetBSDTargetInfo<RISCV32TargetInfo>>(Triple, Opts); diff --git a/clang/lib/Driver/ToolChains/FreeBSD.cpp b/clang/lib/Driver/ToolChains/FreeBSD.cpp index 4c46861bbbd74ef..67a8bb863b3b6b0 100644 --- a/clang/lib/Driver/ToolChains/FreeBSD.cpp +++ b/clang/lib/Driver/ToolChains/FreeBSD.cpp @@ -210,11 +210,6 @@ void freebsd::Linker::ConstructJob(Compilation &C, const JobAction &JA, else CmdArgs.push_back("elf64ltsmip_fbsd"); break; - case llvm::Triple::riscv32: - CmdArgs.push_back("-m"); - CmdArgs.push_back("elf32lriscv"); - CmdArgs.push_back("-X"); - break; case llvm::Triple::riscv64: CmdArgs.push_back("-m"); CmdArgs.push_back("elf64lriscv"); diff --git a/clang/test/Driver/freebsd.c b/clang/test/Driver/freebsd.c index 8ac0cb011638a8a..afa0a17249851b3 100644 --- a/clang/test/Driver/freebsd.c +++ b/clang/test/Driver/freebsd.c @@ -73,9 +73,6 @@ // // Check that RISC-V passes the correct linker emulation. // -// RUN: %clang --target=riscv32-freebsd -### %s %s 2>&1 \ -// RUN: | FileCheck --check-prefix=CHECK-RV32I-LD %s -// CHECK-RV32I-LD: ld{{.*}}" {{.*}} "-m" "elf32lriscv" // RUN: %clang --target=riscv64-freebsd -### %s %s 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-RV64I-LD %s // CHECK-RV64I-LD: ld{{.*}}" {{.*}} "-m" "elf64lriscv" diff --git a/clang/test/Preprocessor/predefined-macros-no-warnings.c b/clang/test/Preprocessor/predefined-macros-no-warnings.c index 56573af6fc7ba82..e0617f8de4da385 100644 --- a/clang/test/Preprocessor/predefined-macros-no-warnings.c +++ b/clang/test/Preprocessor/predefined-macros-no-warnings.c @@ -103,7 +103,6 @@ // RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple amdgcn // RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple r600 // RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple riscv32 -// RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple riscv32-freebsd // RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple riscv32-linux // RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple riscv64 // RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple riscv64-freebsd _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits