[all-commits] [llvm/llvm-project] 2eba4d: [ELF] Rewrite R_RISCV_ALIGN nops when r.addend%4 != 0

Nathan Ridge via All-commits all-commits at lists.llvm.org
Tue Sep 27 23:17:06 PDT 2022


  Branch: refs/heads/release/15.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 2eba4dd78e2a47a36a65617f17d5ea156cfb6448
      https://github.com/llvm/llvm-project/commit/2eba4dd78e2a47a36a65617f17d5ea156cfb6448
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-09-28 (Wed, 28 Sep 2022)

  Changed paths:
    M lld/ELF/Arch/RISCV.cpp
    M lld/test/ELF/riscv-relax-align-rvc.s

  Log Message:
  -----------
  [ELF] Rewrite R_RISCV_ALIGN nops when r.addend%4 != 0

For RVC, GNU assembler and LLVM integrated assembler add c.nop followed by a
sequence of 4-byte nops. Even if remove % 4 == 0, we have to split one 4-byte
nop and therefore need to write the code sequence, otherwise we create an
incorrect c.unimp.

(cherry picked from commit 78084d9e77b9a2017e2215491b71b37c2671c292)


  Commit: e08c165dd67a60635cc131ad7a73dcdb368d5e06
      https://github.com/llvm/llvm-project/commit/e08c165dd67a60635cc131ad7a73dcdb368d5e06
  Author: Nathan Ridge <zeratul976 at hotmail.com>
  Date:   2022-09-28 (Wed, 28 Sep 2022)

  Changed paths:
    M clang/lib/AST/StmtPrinter.cpp
    M clang/unittests/AST/StmtPrinterTest.cpp

  Log Message:
  -----------
  [clangd] Avoid crash when printing call to string literal operator template

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

(cherry picked from commit 898c421975ed36b99ec2047589384539bd29a40b)


  Commit: 10a54971b0d34f3b68b3213bcf82079dc2d00ae9
      https://github.com/llvm/llvm-project/commit/10a54971b0d34f3b68b3213bcf82079dc2d00ae9
  Author: Nathan Ridge <zeratul976 at hotmail.com>
  Date:   2022-09-28 (Wed, 28 Sep 2022)

  Changed paths:
    M clang/unittests/AST/StmtPrinterTest.cpp

  Log Message:
  -----------
  Fix build error in StmtPrinterTest.cpp

(cherry picked from commit c933453858307d060a1b79e257feb99c9ac828d7)


Compare: https://github.com/llvm/llvm-project/compare/451e3b68306d...10a54971b0d3


More information about the All-commits mailing list