diff options
author | Philip Herron <herron.philip@googlemail.com> | 2023-08-31 11:33:27 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2023-08-31 21:25:00 +0000 |
commit | ba792413aef90a5ddcb1b0e22442b47b3f43b251 (patch) | |
tree | ed80eb78ada85865cf701208d55b57d74b1071eb /gcc/rust/hir | |
parent | 113fe163a4ce2c44d880abe659aff08b85b5dc51 (diff) | |
download | gcc-ba792413aef90a5ddcb1b0e22442b47b3f43b251.zip gcc-ba792413aef90a5ddcb1b0e22442b47b3f43b251.tar.gz gcc-ba792413aef90a5ddcb1b0e22442b47b3f43b251.tar.bz2 |
gccrs: Fix move_val_init
The intrinsic move_val_init was being optimized away even at -O0 because
the function looked "pure" but this adds in the attributes to enforce that
this function has side-effects to override that bad assumption by the
middle-end.
Addresses #1895
gcc/rust/ChangeLog:
* backend/rust-compile-intrinsic.cc (move_val_init_handler): mark as side-effects
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/hir')
0 files changed, 0 insertions, 0 deletions