gcc-plugins: Rename last_stmt() for GCC 14+
authorKees Cook <keescook@chromium.org>
Mon, 7 Aug 2023 16:41:19 +0000 (09:41 -0700)
committerKees Cook <keescook@chromium.org>
Fri, 11 Aug 2023 06:10:09 +0000 (23:10 -0700)
commit2e3f65ccfe6b0778b261ad69c9603ae85f210334
tree204eba0ca5cf74d6aac93c9e2799bf45b957a7c9
parentb3d46e11fec0c5a8972e5061bb1462119ae5736d
gcc-plugins: Rename last_stmt() for GCC 14+

In GCC 14, last_stmt() was renamed to last_nondebug_stmt(). Add a helper
macro to handle the renaming.

Cc: linux-hardening@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
scripts/gcc-plugins/gcc-common.h