diff options
author | Philip Herron <philip.herron@embecosm.com> | 2022-09-17 10:04:49 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-01-31 14:16:51 +0100 |
commit | 70fc174b78a2df9cd31fb1ec054d9d8c641b78af (patch) | |
tree | 2519416f16e3bb7fb9f8310b97b26d4b4f69775a /gcc/rust/backend/rust-tree.cc | |
parent | 3736647947b6b776c6d53eddde7538394886ebec (diff) | |
download | gcc-70fc174b78a2df9cd31fb1ec054d9d8c641b78af.zip gcc-70fc174b78a2df9cd31fb1ec054d9d8c641b78af.tar.gz gcc-70fc174b78a2df9cd31fb1ec054d9d8c641b78af.tar.bz2 |
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.
Diffstat (limited to 'gcc/rust/backend/rust-tree.cc')
0 files changed, 0 insertions, 0 deletions