[PATCH v1 1/1] libgccjit: Add support for packed struct
Antoni Boucher via Sourceware Forge
forge-bot@forge-test.rdfm.org
Fri Oct 17 16:23:50 GMT 2025
From: Antoni Boucher <bouanto@zoho.com>
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.
(gcc_jit_type_attribute): New function.
* jit-recording.cc (recording::type::add_attribute): New method.
(type_attribute_reproducer_strings): New variable.
* 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.
---
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: v1-0001-libgccjit-Add-support-for-packed-struct.patch
Type: text/x-patch
Size: 16719 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/test-list/attachments/20251017/05d1bcca/attachment.bin>
More information about the Test-list
mailing list