[PATCH v1 0/1] libgccjit: Add support for packed struct
Antoni Boucher via Sourceware Forge
forge-bot@forge-test.rdfm.org
Fri Oct 17 16:23:11 GMT 2025
Hi gcc-patches mailing list,
Antoni Boucher <antoyo@noreply.localhost> has requested that the following forgejo pull request
be published on the mailing list.
Created on: 2025-10-17 15:45:42+00:00
Latest update: 2025-10-17 16:22:40+00:00
Changes: 12 changed files, 295 additions, 6 deletions
Head revision: antoyo/gcc ref gccjit/packed-type commit 293f9f9690960fdd984a993ed77132ca6dccccf5
Base revision: gcc/gcc-TEST ref trunk commit 7cd91c7c42eec894c8c13fa68ccc12ec3a047c9a r16-4468-g7cd91c7c42eec8
Merge base: 7cd91c7c42eec894c8c13fa68ccc12ec3a047c9a
Full diff url: https://forge.sourceware.org/gcc/gcc-TEST/pulls/111.diff
Discussion: https://forge.sourceware.org/gcc/gcc-TEST/pulls/111
Requested Reviewers:
```
gcc/jit/ChangeLog:
* docs/topics/compatibility.rst (LIBGCCJIT_ABI_36): New ABI tag.
* docs/topics/types.rst: Document gcc_jit_type_add_attribute and
gcc_jit_type_attribute.
* dummy-frontend.cc (attr_aligned_exclusions): New variable.
(handle_packed_attribute): New function.
* jit-playback.cc: Handle type attributes.
(type_attribute_to_string): New function.
* jit-playback.h: New parameter attributes to new_compound_type.
* jit-recording.cc (recording::type::add_attribute): New method.
* jit-recording.h (recording::type::add_attribute): New method.
(m_attributes): New field.
* libgccjit.cc (gcc_jit_type_add_attribute): New function.
* libgccjit.h (gcc_jit_type_add_attribute): New function.
(gcc_jit_type_attribute): New enum.
* libgccjit.map (LIBGCCJIT_ABI_36): New ABI tag.
gcc/testsuite/ChangeLog:
* jit.dg/all-non-failing-tests.h: Mention new test.
* jit.dg/test-packed-struct.c: New test.
```
Changed files:
- A: gcc/testsuite/jit.dg/test-packed-struct.c
- M: gcc/jit/docs/topics/compatibility.rst
- M: gcc/jit/docs/topics/types.rst
- M: gcc/jit/dummy-frontend.cc
- 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 packed struct
gcc/jit/docs/topics/compatibility.rst | 8 +++
gcc/jit/docs/topics/types.rst | 31 ++++++++
gcc/jit/dummy-frontend.cc | 58 +++++++++++++++
gcc/jit/jit-playback.cc | 37 +++++++++-
gcc/jit/jit-playback.h | 4 +-
gcc/jit/jit-recording.cc | 48 +++++++++++--
gcc/jit/jit-recording.h | 4 ++
gcc/jit/libgccjit.cc | 13 ++++
gcc/jit/libgccjit.h | 16 +++++
gcc/jit/libgccjit.map | 5 ++
gcc/testsuite/jit.dg/all-non-failing-tests.h | 3 +
gcc/testsuite/jit.dg/test-packed-struct.c | 74 ++++++++++++++++++++
12 files changed, 295 insertions(+), 6 deletions(-)
create mode 100644 gcc/testsuite/jit.dg/test-packed-struct.c
--
2.50.1
More information about the Test-list
mailing list