diff options
author | Philip Herron <herron.philip@googlemail.com> | 2023-05-05 16:54:28 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:37:15 +0100 |
commit | de9c1ff6d590c871eda5fe0da56efce0735e81fc (patch) | |
tree | c2ca0e7fad05ab970bf21c3d5ffaaeea9c811be5 /gcc/rust/rust-gcc.cc | |
parent | 24c864405273843fcf8bf30c4efc400890b46e1c (diff) | |
download | gcc-de9c1ff6d590c871eda5fe0da56efce0735e81fc.zip gcc-de9c1ff6d590c871eda5fe0da56efce0735e81fc.tar.gz gcc-de9c1ff6d590c871eda5fe0da56efce0735e81fc.tar.bz2 |
gccrs: Add missing compile locals for constants and statics
When we have a block expression for cosntants or statics we need to ensure
we compile the locals for the implicit function we generate in GIMPLE
before feeding it directly into the constant folder to evaluate the data.
Fixes #2178
gcc/rust/ChangeLog:
* backend/rust-compile-base.cc: add missing compile_locals call
gcc/testsuite/ChangeLog:
* rust/compile/issue-2178.rs: New test.
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/rust-gcc.cc')
0 files changed, 0 insertions, 0 deletions