aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-fold.cc
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2022-09-24 16:23:43 +0200
committerIain Buclaw <ibuclaw@gdcproject.org>2022-09-24 16:23:43 +0200
commit13de60fb8e26a874dd58089286a0ea99a90972c8 (patch)
tree9460ec898d5cedf1ab0ac06073b358cc3b928648 /gcc/gimple-fold.cc
parent6da3cab7b0acf5dc363c85069bef716923ddf90c (diff)
parentad2aab5c816a6fd56b46210c0a4a4c6243da1de9 (diff)
downloadgcc-13de60fb8e26a874dd58089286a0ea99a90972c8.zip
gcc-13de60fb8e26a874dd58089286a0ea99a90972c8.tar.gz
gcc-13de60fb8e26a874dd58089286a0ea99a90972c8.tar.bz2
Merge remote-tracking branch 'mainline/master' into ibuclaw/targetrustm
Diffstat (limited to 'gcc/gimple-fold.cc')
-rw-r--r--gcc/gimple-fold.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/gimple-fold.cc b/gcc/gimple-fold.cc
index a170478..9055cd8 100644
--- a/gcc/gimple-fold.cc
+++ b/gcc/gimple-fold.cc
@@ -5512,6 +5512,7 @@ gimple_fold_call (gimple_stmt_iterator *gsi, bool inplace)
{
location_t loc = gimple_location (stmt);
gimple *new_stmt = gimple_build_builtin_unreachable (loc);
+ gimple_call_set_ctrl_altering (new_stmt, false);
/* If the call had a SSA name as lhs morph that into
an uninitialized value. */
if (lhs && TREE_CODE (lhs) == SSA_NAME)