[Bug jit/118034] libgccjit++ has no wrapping C++ API to create a union

2024-12-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118034 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug jit/118034] libgccjit++ has no wrapping C++ API to create a union

2024-12-13 Thread basile at starynkevitch dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118034 --- Comment #2 from Basile Starynkevitch --- Two questions related to this bug: Perhaps in libgccjit a "union" is just a gcc_jit_struct with some extra data telling that all fields have byte offset 0? Then the documentation could say how to cr

[Bug jit/118034] libgccjit++ has no wrapping C++ API to create a union

2024-12-13 Thread antoyo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118034 --- Comment #1 from Antoni --- Many C API does not have a C++ wrapper. Contributions are welcomed.