mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 04:18:39 +08:00
gcc-plugins: Rename last_stmt() for GCC 14+
commit 2e3f65ccfe
upstream.
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>
Cc: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d7eda72e59
commit
aa2a5eeb76
@ -440,4 +440,8 @@ static inline void debug_gimple_stmt(const_gimple s)
|
|||||||
#define SET_DECL_MODE(decl, mode) DECL_MODE(decl) = (mode)
|
#define SET_DECL_MODE(decl, mode) DECL_MODE(decl) = (mode)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if BUILDING_GCC_VERSION >= 14000
|
||||||
|
#define last_stmt(x) last_nondebug_stmt(x)
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user