[all-commits] [llvm/llvm-project] 2a41d9: [C23] Use thread_local semantics (#70107)

wanglei via All-commits all-commits at lists.llvm.org
Fri Oct 27 05:51:15 PDT 2023


  Branch: refs/heads/release/17.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 2a41d978b4fa6dee568e247dd8bd9cabf34660b4
      https://github.com/llvm/llvm-project/commit/2a41d978b4fa6dee568e247dd8bd9cabf34660b4
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2023-10-27 (Fri, 27 Oct 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Parse/ParseDecl.cpp
    A clang/test/CodeGen/thread_local.c
    A clang/test/Sema/thread_local.c

  Log Message:
  -----------
  [C23] Use thread_local semantics (#70107)

When implementing thread_local as a keyword in C23, we accidentally
started using C++11 thread_local semantics when using that keyword
instead of using C11 _Thread_local semantics.

This oversight is fixed by pretending the user wrote _Thread_local
instead. This doesn't have the best behavior in terms of diagnostics,
but it does correct the semantic behavior.

Fixes https://github.com/llvm/llvm-project/issues/70068
Fixes https://github.com/llvm/llvm-project/issues/69167


  Commit: 030d68ef2cd7ec5728e9d99a5a547f2d401a72a2
      https://github.com/llvm/llvm-project/commit/030d68ef2cd7ec5728e9d99a5a547f2d401a72a2
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2023-10-27 (Fri, 27 Oct 2023)

  Changed paths:
    M clang/lib/Parse/ParseDecl.cpp

  Log Message:
  -----------
  Fix a c23 -> c2x think-o


  Commit: 1f6d35b36681b23668fea01a13657eb59419b5da
      https://github.com/llvm/llvm-project/commit/1f6d35b36681b23668fea01a13657eb59419b5da
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2023-10-27 (Fri, 27 Oct 2023)

  Changed paths:
    M clang/test/CodeGen/thread_local.c
    M clang/test/Sema/thread_local.c

  Log Message:
  -----------
  Fix tests for c23 <-> c2x


  Commit: fb62a201a199663dcaf6511bd7a453ff669438e4
      https://github.com/llvm/llvm-project/commit/fb62a201a199663dcaf6511bd7a453ff669438e4
  Author: Owen Pan <owenpiano at gmail.com>
  Date:   2023-10-27 (Fri, 27 Oct 2023)

  Changed paths:
    M clang/lib/Format/WhitespaceManager.cpp
    M clang/unittests/Format/FormatTest.cpp

  Log Message:
  -----------
  Revert "[clang-format] Fix align consecutive declarations over function pointers"

This reverts commit a84e0b4bdc9999872adbdaafbade8164b197784b.

Fixes #68079.

(cherry picked from commit 7bc1031c474ebb2216a5432273dafe4d1490fbce)


  Commit: 4b7f4152a8d166166c6756f933d7dcaa82c0e55e
      https://github.com/llvm/llvm-project/commit/4b7f4152a8d166166c6756f933d7dcaa82c0e55e
  Author: wanglei <wanglei at loongson.cn>
  Date:   2023-10-27 (Fri, 27 Oct 2023)

  Changed paths:
    M llvm/lib/Target/LoongArch/LoongArch.h
    M llvm/lib/Target/LoongArch/LoongArchExpandPseudoInsts.cpp
    M llvm/lib/Target/LoongArch/LoongArchFloat32InstrInfo.td
    M llvm/lib/Target/LoongArch/LoongArchFloatInstrFormats.td
    M llvm/lib/Target/LoongArch/LoongArchInstrInfo.cpp
    M llvm/lib/Target/LoongArch/LoongArchRegisterInfo.cpp
    M llvm/lib/Target/LoongArch/LoongArchTargetMachine.cpp
    M llvm/test/CodeGen/LoongArch/O0-pipeline.ll
    A llvm/test/CodeGen/LoongArch/cfr-copy.mir
    A llvm/test/CodeGen/LoongArch/cfr-pseudo-copy.mir
    M llvm/test/CodeGen/LoongArch/inline-asm-clobbers-fcc.mir
    M llvm/test/CodeGen/LoongArch/opt-pipeline.ll

  Log Message:
  -----------
  [LoongArch] Implement COPY instruction between CFRs (#69300)

With this patch, all CFRs can be used for register allocation.

(cherry picked from commit 271087e3a0875672b26c185a28b3552d5600d2fb)


Compare: https://github.com/llvm/llvm-project/compare/afbe3549af4d...4b7f4152a8d1


More information about the All-commits mailing list