[PATCH] D44888: [RISCV] Default enable linker relaxation and add -mrelax, -mno-relax flags

Shiva Chen via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 17 01:14:11 PDT 2018


shiva0217 added a comment.

In https://reviews.llvm.org/D44888#1068806, @asb wrote:

> Thanks Kito. -mrelax and -mno-relax currently only affect the backend. For completeness, I think this patch needs to pass the appropriate flag to the linker depending on relax/no-relax.


Hi Alex. RISCVToolChain class does not define yet, so we can't pass --no-relax in RISCV::Linker::ConstructJob. Should we passing --no-relax when we introduce RISCVToolchain? Or there is another place we could implement passing RISCV linker flags?


Repository:
  rL LLVM

https://reviews.llvm.org/D44888





More information about the cfe-commits mailing list