]> gcc.gnu.org Git - gcc.git/commit
gccrs: Static Items must be const evaluated
authorPhilip Herron <philip.herron@embecosm.com>
Sat, 17 Sep 2022 09:04:49 +0000 (10:04 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 31 Jan 2023 13:16:51 +0000 (14:16 +0100)
commit70fc174b78a2df9cd31fb1ec054d9d8c641b78af
tree2519416f16e3bb7fb9f8310b97b26d4b4f69775a
parent3736647947b6b776c6d53eddde7538394886ebec
gccrs: Static Items must be const evaluated

Statics like constants need to have a singular value they are not functions
to be lazy evaluated. So to evaluate a block expr we can just reuse our
const code to resolve this to a singular value.

gcc/rust/ChangeLog:

* backend/rust-compile-item.cc (CompileItem::visit): Const evaluate
static item expressions.
gcc/rust/backend/rust-compile-item.cc
This page took 0.068052 seconds and 6 git commands to generate.