[PATCH] D130190: [Driver] Error for -gsplit-dwarf with RISC-V linker relaxation
Saleem Abdulrasool via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 20 13:32:40 PDT 2022
compnerd requested changes to this revision.
compnerd added inline comments.
This revision now requires changes to proceed.
================
Comment at: clang/lib/Driver/ToolChains/Arch/RISCV.cpp:146
+ Arg *A;
+ if (getDebugFissionKind(D, Args, A) != DwarfFissionKind::None)
+ D.Diag(clang::diag::err_drv_riscv_unsupported_with_linker_relaxation)
----------------
This should be hoisted out, this will occur with or without relaxation. That is, `-mrelax` and `-mno-relax` are both problematic.
================
Comment at: clang/test/Driver/riscv-features.c:41
+// RUN: not %clang -c --target=riscv64 -gsplit-dwarf=single %s 2>&1 | FileCheck %s --check-prefix=ERR-SPLIT-DWARF
+// RUN: %clang -### -c --target=riscv64 -mno-relax -g -gsplit-dwarf %s 2>&1 | FileCheck %s --check-prefix=SPLIT-DWARF
+
----------------
Can you please add a `-mno-relax` check as well?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130190/new/
https://reviews.llvm.org/D130190
More information about the cfe-commits
mailing list