]> git.ipfire.org Git - thirdparty/gcc.git/commit
libgccjit: Do not treat warnings as errors
authorAntoni Boucher <bouanto@zoho.com>
Mon, 12 Feb 2024 23:49:43 +0000 (19:49 -0400)
committerAntoni Boucher <bouanto@zoho.com>
Mon, 20 Oct 2025 21:35:50 +0000 (17:35 -0400)
commitdf879e7adfcef471703950ef0652e8a6e4fde0f4
tree0b027879da4a0152519b9f62b0e3c302e5147c05
parentb482f5d75ce77732e343ac69a085fdb42c1de779
libgccjit: Do not treat warnings as errors

gcc/jit/ChangeLog:

* jit-playback.cc (add_error, add_error_va): Send DK_ERROR to
add_error_va.
(add_diagnostic): Call add_diagnostic instead of add_error.
* jit-recording.cc (DEFINE_DIAGNOSTIC_KIND): New define.
(recording::context::add_diagnostic): New function.
(recording::context::add_error): Send DK_ERROR to add_error_va.
(recording::context::add_error_va): New parameter diagnostic_kind.
* jit-recording.h (add_diagnostic): New function.
(add_error_va): New parameter diagnostic_kind.
* libgccjit.cc (jit_error): Send DK_ERROR to add_error_va.

gcc/testsuite/ChangeLog:

* jit.dg/test-error-array-bounds.c: Fix test.
gcc/jit/jit-playback.cc
gcc/jit/jit-recording.cc
gcc/jit/jit-recording.h
gcc/jit/libgccjit.cc
gcc/testsuite/jit.dg/test-error-array-bounds.c