aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-08-12 06:31:13 +0000
committerGitHub <noreply@github.com>2022-08-12 06:31:13 +0000
commit3399688a1bfe506e80109b765a63ea278d29383c (patch)
treefa7834d0e5c73209707eb7d3604ce85a583b9bc7 /gcc
parent70a0039b82b3419820359c8a1552470e48b458f6 (diff)
parent2f15ae7493579ac55d2a1e11ece43abaf4e1bc06 (diff)
downloadgcc-3399688a1bfe506e80109b765a63ea278d29383c.zip
gcc-3399688a1bfe506e80109b765a63ea278d29383c.tar.gz
gcc-3399688a1bfe506e80109b765a63ea278d29383c.tar.bz2
Merge #1468
1468: Revert "Ensure we set TREE_SIDE_EFFECTS on call expressions" r=CohenArthur a=philberty This reverts commit f891a13aa2af912584176d2c595c295b77ff5ff9. This fix ensures the code is added to the block but still as the artifical function is marked READONLY it ends up being optimized out anyway. Co-authored-by: Philip Herron <philip.herron@embecosm.com>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/rust-gcc.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/gcc/rust/rust-gcc.cc b/gcc/rust/rust-gcc.cc
index c8eee0f..66fd8bc 100644
--- a/gcc/rust/rust-gcc.cc
+++ b/gcc/rust/rust-gcc.cc
@@ -1840,9 +1840,6 @@ Gcc_backend::call_expression (tree fn, const std::vector<tree> &fn_args,
ret = build1_loc (location.gcc_location (), NOP_EXPR, rettype, ret);
}
- if (!TREE_SIDE_EFFECTS (ret))
- TREE_SIDE_EFFECTS (ret) = TREE_SIDE_EFFECTS (fndecl);
-
delete[] args;
return ret;
}