Hi gcc-patches mailing list,
Antoni Boucher <[email protected]> has requested that the following 
forgejo pull request
be published on the mailing list.

Created on: 2025-11-14 16:37:54+00:00
Latest update: 2025-11-14 16:45:26+00:00
Changes: 5 changed files, 142 additions, 4 deletions
Head revision: antoyo/gcc ref fix/gccjit-cast-ub commit 
992085c6aefcff49b39e6ae30f0ad79fd17166e8
Base revision: gcc/gcc-TEST ref trunk commit 
7a5a92a643b883f3ad3c959045f2cd2d1552c1a6 r16-5281-g7a5a92a643b883
Merge base: 7a5a92a643b883f3ad3c959045f2cd2d1552c1a6
Full diff url: https://forge.sourceware.org/gcc/gcc-TEST/pulls/124.diff
Discussion:  https://forge.sourceware.org/gcc/gcc-TEST/pulls/124
Requested Reviewers:

```
gcc/jit/ChangeLog:
        PR jit/105296
        * jit-recording.cc: Use dyn_cast_compound_type instead of
        reinterpret_cast.
        * jit-recording.h (dyn_cast_compound_type, is_union): New methods.
        * libgccjit.cc: Use correct cast method instead of
        reinterpret_cast.

gcc/testsuite/ChangeLog:
        PR jit/105296
        * jit.dg/all-non-failing-tests.h: Mention new test.
        * jit.dg/test-aligned-constructor.c: New test.
```


Changed files:
- A: gcc/testsuite/jit.dg/test-aligned-constructor.c
- M: gcc/jit/jit-recording.cc
- M: gcc/jit/jit-recording.h
- M: gcc/jit/libgccjit.cc
- M: gcc/testsuite/jit.dg/all-non-failing-tests.h


Antoni Boucher (1):
  libgccjit: Fix UB in constructor functions

 gcc/jit/jit-recording.cc                      |   2 +-
 gcc/jit/jit-recording.h                       |   8 ++
 gcc/jit/libgccjit.cc                          |   6 +-
 gcc/testsuite/jit.dg/all-non-failing-tests.h  |  10 ++
 .../jit.dg/test-aligned-constructor.c         | 120 ++++++++++++++++++
 5 files changed, 142 insertions(+), 4 deletions(-)
 create mode 100644 gcc/testsuite/jit.dg/test-aligned-constructor.c

-- 
2.51.1

Reply via email to