diff options
author | Philip Herron <herron.philip@googlemail.com> | 2023-08-31 11:33:27 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 19:04:30 +0100 |
commit | b79f6432799f983470a5d19f4e91b45531166e90 (patch) | |
tree | ccf65d061012acabbb367e3f1c6f909d86e48cdc /gcc/rust/rust-gcc.cc | |
parent | 7519a5fb37aeb459bad022c9a41dd47b2d5b2b12 (diff) | |
download | gcc-b79f6432799f983470a5d19f4e91b45531166e90.zip gcc-b79f6432799f983470a5d19f4e91b45531166e90.tar.gz gcc-b79f6432799f983470a5d19f4e91b45531166e90.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/rust-gcc.cc')
0 files changed, 0 insertions, 0 deletions