libgccjit: add new version entry point
authorAndreaCorallo <andrea.corallo@arm.com>
Sun, 8 Mar 2020 13:46:33 +0000 (13:46 +0000)
committerAndrea Corallo <andrea.corallo@arm.com>
Tue, 31 Mar 2020 18:57:15 +0000 (20:57 +0200)
commit63b2923dc6f57e74d964a9cf14f4ba595ab14ed9
tree03f4850f666021f4378a87062e2900281dd852ef
parent689418b97e5eb6a221871a2439bca3e6283ac579
libgccjit: add new version entry point

gcc/jit/ChangeLog
2020-03-31  Andrea Corallo  <andrea.corallo@arm.com>
    David Malcolm  <dmalcolm@redhat.com>

* docs/topics/compatibility.rst (LIBGCCJIT_ABI_13): New ABI tag
plus add version paragraph.
* libgccjit++.h (namespace gccjit::version): Add new namespace.
* libgccjit.c (gcc_jit_version_major, gcc_jit_version_minor)
(gcc_jit_version_patchlevel): New functions.
* libgccjit.h (LIBGCCJIT_HAVE_gcc_jit_version): New macro.
(gcc_jit_version_major, gcc_jit_version_minor)
(gcc_jit_version_patchlevel): New functions.
* libgccjit.map (LIBGCCJIT_ABI_13) New ABI tag.

gcc/testsuite/ChangeLog
2020-03-31  Andrea Corallo  <andrea.corallo@arm.com>

* jit.dg/test-version.c: New testcase.
* jit.dg/all-non-failing-tests.h: Add test-version.c.
gcc/jit/ChangeLog
gcc/jit/docs/topics/compatibility.rst
gcc/jit/libgccjit++.h
gcc/jit/libgccjit.c
gcc/jit/libgccjit.h
gcc/jit/libgccjit.map
gcc/testsuite/ChangeLog
gcc/testsuite/jit.dg/all-non-failing-tests.h
gcc/testsuite/jit.dg/test-version.c [new file with mode: 0644]