mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
hardening fix for v7.1-rc4
- gcc-plugins: Fix GCC 16 removal of CONST_CAST macros -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRSPkdeREjth1dHnSE2KwveOeQkuwUCagdJ1gAKCRA2KwveOeQk uzEeAPsE4pOGtNw5/qRAHQHpbxmuYeOGhsQM734sQwUoU71WjwEAjR0FMoXwkyeQ 69SyEkloBuniO5FKguWKxrEowfCdzwY= =dRPj -----END PGP SIGNATURE----- Merge tag 'hardening-v7.1-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux Pull hardening fix from Kees Cook: - gcc-plugins: Fix GCC 16 removal of CONST_CAST macros * tag 'hardening-v7.1-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux: gcc-plugins: Always define CONST_CAST_GIMPLE and CONST_CAST_TREE
This commit is contained in:
commit
78e8370033
|
|
@ -309,7 +309,9 @@ typedef const gimple *const_gimple_ptr;
|
|||
#define gimple gimple_ptr
|
||||
#define const_gimple const_gimple_ptr
|
||||
#undef CONST_CAST_GIMPLE
|
||||
#define CONST_CAST_GIMPLE(X) CONST_CAST(gimple, (X))
|
||||
#define CONST_CAST_GIMPLE(X) const_cast<gimple>((X))
|
||||
#undef CONST_CAST_TREE
|
||||
#define CONST_CAST_TREE(X) const_cast<tree>((X))
|
||||
|
||||
/* gimple related */
|
||||
static inline gimple gimple_build_assign_with_ops(enum tree_code subcode, tree lhs, tree op1, tree op2 MEM_STAT_DECL)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user