Skip to content

Commit c1300ef

Browse files
authored
[Driver] Remove FreeBSD/riscv32 support (llvm#67277)
FreeBSD does not support riscv32 and has no intention of doing so.
1 parent 085075a commit c1300ef

File tree

4 files changed

+0
-12
lines changed

4 files changed

+0
-12
lines changed

clang/lib/Basic/Targets.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -430,9 +430,6 @@ std::unique_ptr<TargetInfo> AllocateTarget(const llvm::Triple &Triple,
430430

431431
case llvm::Triple::riscv32:
432432
switch (os) {
433-
case llvm::Triple::FreeBSD:
434-
return std::make_unique<FreeBSDTargetInfo<RISCV32TargetInfo>>(Triple,
435-
Opts);
436433
case llvm::Triple::NetBSD:
437434
return std::make_unique<NetBSDTargetInfo<RISCV32TargetInfo>>(Triple,
438435
Opts);

clang/lib/Driver/ToolChains/FreeBSD.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,6 @@ void freebsd::Linker::ConstructJob(Compilation &C, const JobAction &JA,
210210
else
211211
CmdArgs.push_back("elf64ltsmip_fbsd");
212212
break;
213-
case llvm::Triple::riscv32:
214-
CmdArgs.push_back("-m");
215-
CmdArgs.push_back("elf32lriscv");
216-
CmdArgs.push_back("-X");
217-
break;
218213
case llvm::Triple::riscv64:
219214
CmdArgs.push_back("-m");
220215
CmdArgs.push_back("elf64lriscv");

clang/test/Driver/freebsd.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,6 @@
7373
//
7474
// Check that RISC-V passes the correct linker emulation.
7575
//
76-
// RUN: %clang --target=riscv32-freebsd -### %s %s 2>&1 \
77-
// RUN: | FileCheck --check-prefix=CHECK-RV32I-LD %s
78-
// CHECK-RV32I-LD: ld{{.*}}" {{.*}} "-m" "elf32lriscv"
7976
// RUN: %clang --target=riscv64-freebsd -### %s %s 2>&1 \
8077
// RUN: | FileCheck --check-prefix=CHECK-RV64I-LD %s
8178
// CHECK-RV64I-LD: ld{{.*}}" {{.*}} "-m" "elf64lriscv"

clang/test/Preprocessor/predefined-macros-no-warnings.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@
103103
// RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple amdgcn
104104
// RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple r600
105105
// RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple riscv32
106-
// RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple riscv32-freebsd
107106
// RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple riscv32-linux
108107
// RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple riscv64
109108
// RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple riscv64-freebsd

0 commit comments

Comments
 (0)