libgccjit: add support for `restrict` attribute on function parameters
commit29763b002459cba64fa76a6965046792944de41d
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Tue, 29 Aug 2023 15:32:09 +0000 (29 11:32 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Tue, 29 Aug 2023 15:32:12 +0000 (29 11:32 -0400)
treef5c7c538f99c3453c6a9c36786c87a8b1d6156fe
parent4b70c7c849331d45c0d6a1a4e1cf96b103be9aa6
libgccjit: add support for `restrict` attribute on function parameters

gcc/jit/Changelog:
* jit-playback.cc: Remove trailing whitespace characters.
* jit-playback.h: Add get_restrict method.
* jit-recording.cc: Add get_restrict methods.
* jit-recording.h: Add get_restrict methods.
* libgccjit++.h: Add get_restrict methods.
* libgccjit.cc: Add gcc_jit_type_get_restrict.
* libgccjit.h: Declare gcc_jit_type_get_restrict.
* libgccjit.map: Declare gcc_jit_type_get_restrict.

gcc/testsuite/ChangeLog:
* jit.dg/test-restrict.c: Add test for __restrict__ attribute.
* jit.dg/all-non-failing-tests.h: Add test-restrict.c to the list.

gcc/jit/ChangeLog:
* docs/topics/compatibility.rst: Add documentation for LIBGCCJIT_ABI_25.
* docs/topics/types.rst: Add documentation for gcc_jit_type_get_restrict.

Signed-off-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
12 files changed:
gcc/jit/docs/topics/compatibility.rst
gcc/jit/docs/topics/types.rst
gcc/jit/jit-playback.cc
gcc/jit/jit-playback.h
gcc/jit/jit-recording.cc
gcc/jit/jit-recording.h
gcc/jit/libgccjit++.h
gcc/jit/libgccjit.cc
gcc/jit/libgccjit.h
gcc/jit/libgccjit.map
gcc/testsuite/jit.dg/all-non-failing-tests.h
gcc/testsuite/jit.dg/test-restrict.c [new file with mode: 0644]