]> git.ipfire.org Git - thirdparty/gcc.git/commit
middle-end: replace CONST_CAST_TREE with const_cast<tree> [PR123892]
authorTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Wed, 4 Feb 2026 09:31:04 +0000 (10:31 +0100)
committerTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Fri, 6 Feb 2026 08:02:04 +0000 (09:02 +0100)
commit6b228f02ef7fa58e962486356b5a6716fd99a6b0
tree71bba420fae578dadc2cbc759e0ad602943e375b
parentc3d96ff9e916c02584aa081f03ab999292efbb50
middle-end: replace CONST_CAST_TREE with const_cast<tree> [PR123892]

gcc/ChangeLog:

PR middle-end/123892
* attribs.cc: Replace CONST_CAST_TREE with const_cast<tree>.
* config/aarch64/aarch64.cc: Likewise.
* config/arm/arm.cc: Likewise.
* config/darwin.cc: Likewise.
* fold-const.cc: Likewise.
* gimple-expr.cc: Likewise.
* print-rtl.cc: Likewise.
* tree-object-size.cc: Likewise.
* tree.cc: Likewise.
* varasm.cc: Likewise.
* tree.h: Likewise.

gcc/c-family/ChangeLog:

PR middle-end/123892
* c-gimplify.cc: Replace CONST_CAST_TREE with const_cast<tree>.

gcc/cp/ChangeLog:

PR middle-end/123892
* call.cc: Replace CONST_CAST_TREE with const_cast<tree>.
* constraint.cc: Likewise.
* cp-lang.cc: Likewise.
* cp-tree.h: Likewise.
* cp-objcp-common.cc: Likewise.
* decl.cc: Likewise.
* init.cc: Likewise.
* pt.cc: Likewise.
* reflect.cc: Likewise.
* tree.cc: Likewise.
* typeck.cc: Likewise.
* typeck2.cc: Likewise.

gcc/lto/ChangeLog:

PR middle-end/123892
* lto-common.cc: Replace CONST_CAST_TREE with const_cast<tree>.

gcc/rust/ChangeLog:

PR middle-end/123892
* backend/rust-tree.cc: Replace CONST_CAST_TREE with const_cast<tree>.

Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
26 files changed:
gcc/attribs.cc
gcc/c-family/c-gimplify.cc
gcc/config/aarch64/aarch64.cc
gcc/config/arm/arm.cc
gcc/config/darwin.cc
gcc/cp/call.cc
gcc/cp/constraint.cc
gcc/cp/cp-lang.cc
gcc/cp/cp-objcp-common.cc
gcc/cp/cp-tree.h
gcc/cp/decl.cc
gcc/cp/init.cc
gcc/cp/pt.cc
gcc/cp/reflect.cc
gcc/cp/tree.cc
gcc/cp/typeck.cc
gcc/cp/typeck2.cc
gcc/fold-const.cc
gcc/gimple-expr.cc
gcc/lto/lto-common.cc
gcc/print-rtl.cc
gcc/rust/backend/rust-tree.cc
gcc/tree-object-size.cc
gcc/tree.cc
gcc/tree.h
gcc/varasm.cc