[all-commits] [llvm/llvm-project] 9fbe16: [CSKY] Fix .bss directive compling error created b...

Zi Xuan Wu (Zeson) via All-commits all-commits at lists.llvm.org
Tue Nov 1 23:18:59 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9fbe16ee18a3e4639f0e6dadb01ab03dedbb99fb
      https://github.com/llvm/llvm-project/commit/9fbe16ee18a3e4639f0e6dadb01ab03dedbb99fb
  Author: Zi Xuan Wu (Zeson) <zixuan.wu at linux.alibaba.com>
  Date:   2022-11-02 (Wed, 02 Nov 2022)

  Changed paths:
    M llvm/lib/Target/CSKY/MCTargetDesc/CSKYMCAsmInfo.cpp

  Log Message:
  -----------
  [CSKY] Fix .bss directive compling error created by --save-temps

.bss without symbol and num following can't be compiled in CSKY target, which is consistent to GCC behavior.
So when --save-temps generates .bss, we should UsesELFSectionDirectiveForBSS to avoid such error.


  Commit: 76fc5fe64a23edc4574e31d6af4de8e7808b43a7
      https://github.com/llvm/llvm-project/commit/76fc5fe64a23edc4574e31d6af4de8e7808b43a7
  Author: Zi Xuan Wu (Zeson) <zixuan.wu at linux.alibaba.com>
  Date:   2022-11-02 (Wed, 02 Nov 2022)

  Changed paths:
    M llvm/lib/Target/CSKY/MCTargetDesc/CSKYAsmBackend.cpp
    A llvm/test/MC/CSKY/const-pool.s

  Log Message:
  -----------
  [CSKY] Fix the adjustFixupValue of fixup_csky_pcrel_uimm7_scale4

The logic to calculate the offset of lrw16 is complex and the Value
before adjustFixupValue should in range of 0 <= (Value >> 2) <= 0xfe.

It also influences the relax condition.


Compare: https://github.com/llvm/llvm-project/compare/23c665371a98...76fc5fe64a23


More information about the All-commits mailing list