[all-commits] [llvm/llvm-project] d09d29: [RISCV] Fix crash for section alignment with .opti...

Luís Marques via All-commits all-commits at lists.llvm.org
Thu Apr 7 04:02:41 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d09d297c5d28bd0af4dd8bf3ca66d8dbbd196d9d
      https://github.com/llvm/llvm-project/commit/d09d297c5d28bd0af4dd8bf3ca66d8dbbd196d9d
  Author: Luís Marques <luismarques at lowrisc.org>
  Date:   2022-04-07 (Thu, 07 Apr 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp
    A llvm/test/MC/RISCV/align-option-relax.s
    M llvm/test/MC/RISCV/align.s

  Log Message:
  -----------
  [RISCV] Fix crash for section alignment with .option norvc

The existing code wasn't getting the subtarget info from the fragment,
so the current status of RVC would be ignored. This would cause a crash
for the new test case when the target then reported it couldn't write
the requested number of code alignment bytes.

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




More information about the All-commits mailing list