[all-commits] [llvm/llvm-project] 429cba: [RISCV] Pass -mno-relax to assembler when -fno-int...

luxufan via All-commits all-commits at lists.llvm.org
Sun Apr 17 20:17:04 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 429cbac0390654f90bba18a41799464adf31a5ec
  Author: luxufan <xufan at nj.iscas.ac.cn>
  Date:   2022-04-18 (Mon, 18 Apr 2022)

  Changed paths:
    M clang/lib/Driver/ToolChains/Gnu.cpp
    M clang/test/Driver/riscv-gnutools.c

  Log Message:
  [RISCV] Pass -mno-relax to assembler when -fno-integrated-as specified

In the past, `clang --target=riscv64-unknown-linux-gnu -mno-relax -c hello.s` will assemble hello.s without relaxation, but `clang --target=riscv64-unknown-linux-gnu -mno-relax -fno-integrated-as -c hello.s` doesn't pass the `-mno-relax` option to assembler, and assemble with relaxation
This patch pass the -mno-relax option to assembler when -fno-integrated-as is specified.

Differential Revision: https://reviews.llvm.org/D120639

More information about the All-commits mailing list