diff --git a/gcc/gimple-fold.cc b/gcc/gimple-fold.cc
index a1704784bc99a25800a9369a0400ae141ff11952..9055cd8982d6f56160106dfa3b7ac1f7146fb037 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)