[all-commits] [llvm/llvm-project] 66f4a1: [C23] Use thread_local semantics (#70107)
Aaron Ballman via All-commits
all-commits at lists.llvm.org
Wed Oct 25 04:51:41 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 66f4a1399d7de3d38312a5b251d4f8acd75237ca
https://github.com/llvm/llvm-project/commit/66f4a1399d7de3d38312a5b251d4f8acd75237ca
Author: Aaron Ballman <aaron at aaronballman.com>
Date: 2023-10-25 (Wed, 25 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
More information about the All-commits
mailing list