[clang] [llvm] [C2y] Support WG14 N3457, the __COUNTER__ macro (PR #162662)

Aaron Ballman via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 23 08:41:43 PDT 2025


AaronBallman wrote:

Precommit CI failure appears to be unrelated:
```
2025-10-23T15:19:18.6026078Z FAIL: ORC-x86_64-linux :: TestCases/Linux/x86-64/trivial-tls.S (4454 of 6283)
2025-10-23T15:19:18.6029042Z ******************** TEST 'ORC-x86_64-linux :: TestCases/Linux/x86-64/trivial-tls.S' FAILED ********************
2025-10-23T15:19:18.6029727Z Exit Code: 139
2025-10-23T15:19:18.6029916Z 
2025-10-23T15:19:18.6030048Z Command Output (stderr):
2025-10-23T15:19:18.6030385Z --
2025-10-23T15:19:18.6032668Z /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang   -m64  -c -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/orc/X86_64LinuxConfig/TestCases/Linux/x86-64/Output/trivial-tls.S.tmp /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/orc/TestCases/Linux/x86-64/trivial-tls.S # RUN: at line 1
2025-10-23T15:19:18.6037644Z + /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang -m64 -c -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/orc/X86_64LinuxConfig/TestCases/Linux/x86-64/Output/trivial-tls.S.tmp /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/orc/TestCases/Linux/x86-64/trivial-tls.S
2025-10-23T15:19:18.6041926Z /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-jitlink -orc-runtime=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib/../lib/clang/22/lib/x86_64-unknown-linux-gnu/liborc_rt.a /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/orc/X86_64LinuxConfig/TestCases/Linux/x86-64/Output/trivial-tls.S.tmp # RUN: at line 2
2025-10-23T15:19:18.6046452Z + /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-jitlink -orc-runtime=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib/../lib/clang/22/lib/x86_64-unknown-linux-gnu/liborc_rt.a /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/orc/X86_64LinuxConfig/TestCases/Linux/x86-64/Output/trivial-tls.S.tmp
2025-10-23T15:19:18.6049676Z PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
2025-10-23T15:19:18.6062940Z #0 0x0000000002c5dde8 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:834:13
2025-10-23T15:19:18.6064722Z #1 0x0000000002c5b3e5 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:105:18
2025-10-23T15:19:18.6066512Z #2 0x0000000002c5ebb1 SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:426:38
2025-10-23T15:19:18.6067879Z #3 0x00007fb443d0e330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
2025-10-23T15:19:18.6068962Z #4 0x0000000002a5b25f operator() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/FunctionExtras.h:365:12
2025-10-23T15:19:18.6071047Z #5 0x0000000002a5b25f llvm::orc::AsynchronousSymbolQuery::handleComplete(llvm::orc::ExecutionSession&)::RunQueryCompleteTask::run() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/ExecutionEngine/Orc/Core.cpp:245:27
2025-10-23T15:19:18.6072960Z #6 0x0000000002b38521 reset /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h:208:26
2025-10-23T15:19:18.6074096Z #7 0x0000000002b38521 reset /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h:509:7
2025-10-23T15:19:18.6075460Z #8 0x0000000002b38521 operator() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/ExecutionEngine/Orc/TaskDispatch.cpp:77:9
2025-10-23T15:19:18.6078136Z #9 0x0000000002b38521 __invoke_impl<void, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/ExecutionEngine/Orc/TaskDispatch.cpp:67:15)> /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/invoke.h:61:14
2025-10-23T15:19:18.6080852Z #10 0x0000000002b38521 __invoke<(lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/ExecutionEngine/Orc/TaskDispatch.cpp:67:15)> /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/invoke.h:96:14
2025-10-23T15:19:18.6082738Z #11 0x0000000002b38521 _M_invoke<0UL> /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/std_thread.h:292:13
2025-10-23T15:19:18.6083844Z #12 0x0000000002b38521 operator() /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/std_thread.h:299:11
2025-10-23T15:19:18.6086263Z #13 0x0000000002b38521 std::thread::_State_impl<std::thread::_Invoker<std::tuple<llvm::orc::DynamicThreadPoolTaskDispatcher::dispatch(std::unique_ptr<llvm::orc::Task, std::default_delete<llvm::orc::Task>>)::$_0>>>::_M_run() /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/std_thread.h:244:13
2025-10-23T15:19:18.6088113Z #14 0x00007fb443ff5db4 (/lib/x86_64-linux-gnu/libstdc++.so.6+0xecdb4)
2025-10-23T15:19:18.6088832Z #15 0x00007fb443d65aa4 (/lib/x86_64-linux-gnu/libc.so.6+0x9caa4)
2025-10-23T15:19:18.6089509Z #16 0x00007fb443df2c6c (/lib/x86_64-linux-gnu/libc.so.6+0x129c6c)
2025-10-23T15:19:18.6093476Z /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/orc/X86_64LinuxConfig/TestCases/Linux/x86-64/Output/trivial-tls.S.script: line 2: 1932553 Segmentation fault      /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-jitlink -orc-runtime=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib/../lib/clang/22/lib/x86_64-unknown-linux-gnu/liborc_rt.a /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/orc/X86_64LinuxConfig/TestCases/Linux/x86-64/Output/trivial-tls.S.tmp
2025-10-23T15:19:18.6138028Z 
2025-10-23T15:19:18.6138312Z --
2025-10-23T15:19:18.6138552Z 
2025-10-23T15:19:18.6138680Z ********************
```

https://github.com/llvm/llvm-project/pull/162662


More information about the llvm-commits mailing list