[PATCH v1 0/1] libgccjit: Add support for the weak variable attribute
via Sourceware Forge
forge-bot@forge-test.rdfm.org
Mon Oct 13 22:47:12 GMT 2025
Hi gcc-patches mailing list,
antoyo@noreply.localhost has requested that the following forgejo pull request
be published on the mailing list.
Created on: 2025-10-13 22:40:34+00:00
Latest update: 2025-10-13 22:46:42+00:00
Changes: 11 changed files, 142 additions, 9 deletions
Head revision: antoyo/gcc ref gccjit-weak-attribute commit f21dd0d933609bbda25f90ae83d2a37a3c22f84a
Base revision: gcc/gcc-TEST ref trunk commit 51b76ec931c8bbd388a7d7fa706df8d1d6ce0829 r16-4395-g51b76ec931c8bb
Merge base: 51b76ec931c8bbd388a7d7fa706df8d1d6ce0829
Full diff url: https://forge.sourceware.org/gcc/gcc-TEST/pulls/99.diff
Discussion: https://forge.sourceware.org/gcc/gcc-TEST/pulls/99
Requested Reviewers:
```
gcc/jit/ChangeLog:
* docs/topics/compatibility.rst (LIBGCCJIT_ABI_36): New ABI tag.
* docs/topics/expressions.rst: Document gcc_jit_lvalue_add_attribute.
* jit-playback.cc: Handle the weak attribute.
* jit-playback.h: Add support for variable attributes without
arguments.
* jit-recording.cc: Handle the weak attribute.
* jit-recording.h: Add support for variable attributes without
arguments.
* libgccjit.cc (gcc_jit_lvalue_add_attribute): New function.
* libgccjit.h (gcc_jit_lvalue_add_attribute): New function.
(GCC_JIT_VARIABLE_ATTRIBUTE_WEAK): New enum variant.
* libgccjit.map: New function.
gcc/testsuite/ChangeLog:
* jit.dg/all-non-failing-tests.h: Mention new test.
* jit.dg/test-weak-var-attribute.c: New test.
```
Changed files:
- A: gcc/testsuite/jit.dg/test-weak-var-attribute.c
- M: gcc/jit/docs/topics/compatibility.rst
- M: gcc/jit/docs/topics/expressions.rst
- M: gcc/jit/jit-playback.cc
- M: gcc/jit/jit-playback.h
- M: gcc/jit/jit-recording.cc
- M: gcc/jit/jit-recording.h
- M: gcc/jit/libgccjit.cc
- M: gcc/jit/libgccjit.h
- M: gcc/jit/libgccjit.map
- M: gcc/testsuite/jit.dg/all-non-failing-tests.h
Antoni Boucher (1):
libgccjit: Add support for the weak variable attribute
gcc/jit/docs/topics/compatibility.rst | 8 +++++
gcc/jit/docs/topics/expressions.rst | 13 ++++++++
gcc/jit/jit-playback.cc | 32 +++++++++++++++----
gcc/jit/jit-playback.h | 8 +++--
gcc/jit/jit-recording.cc | 20 ++++++++++++
gcc/jit/jit-recording.h | 5 ++-
gcc/jit/libgccjit.cc | 18 +++++++++++
gcc/jit/libgccjit.h | 8 +++++
gcc/jit/libgccjit.map | 5 +++
gcc/testsuite/jit.dg/all-non-failing-tests.h | 3 ++
.../jit.dg/test-weak-var-attribute.c | 31 ++++++++++++++++++
11 files changed, 142 insertions(+), 9 deletions(-)
create mode 100644 gcc/testsuite/jit.dg/test-weak-var-attribute.c
--
2.50.1
More information about the Jit
mailing list