diff options
author | reichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-08 15:46:09 +0000 |
---|---|---|
committer | reichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-08 15:46:09 +0000 |
commit | 6276113b222aa3a5633d3aff11d9c301f2e55505 (patch) | |
tree | e1639906e1c1e7741a5d5186f82d45bc10d23605 /gcc/tree-object-size.c | |
parent | 84a755ae423fff9e4b03255fa62bd71576d2b4ca (diff) | |
download | gcc-6276113b222aa3a5633d3aff11d9c301f2e55505.tar.gz |
* ipa-type-escape.c (analyze_variable): Use gcc_assert instead of
abort.
* except.c (output_ttype): Likewise.
* tree-object-size.c (collect_object_sizes_for): Likewise.
(check_for_plus_in_loops_1): Likewise.
(check_for_plus_in_loops): Likewise.
(compute_object_sizes): Use gcc_unreachable instead of abort.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108237 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-object-size.c')
-rw-r--r-- | gcc/tree-object-size.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/gcc/tree-object-size.c b/gcc/tree-object-size.c index 178dc98d627..01eb3814b27 100644 --- a/gcc/tree-object-size.c +++ b/gcc/tree-object-size.c @@ -688,8 +688,7 @@ collect_object_sizes_for (struct object_size_info *osi, tree var) switch (TREE_CODE (stmt)) { case RETURN_EXPR: - if (TREE_CODE (TREE_OPERAND (stmt, 0)) != MODIFY_EXPR) - abort (); + gcc_assert (TREE_CODE (TREE_OPERAND (stmt, 0)) == MODIFY_EXPR); stmt = TREE_OPERAND (stmt, 0); /* FALLTHRU */ @@ -815,8 +814,7 @@ check_for_plus_in_loops_1 (struct object_size_info *osi, tree var, switch (TREE_CODE (stmt)) { case RETURN_EXPR: - if (TREE_CODE (TREE_OPERAND (stmt, 0)) != MODIFY_EXPR) - abort (); + gcc_assert (TREE_CODE (TREE_OPERAND (stmt, 0)) == MODIFY_EXPR); stmt = TREE_OPERAND (stmt, 0); /* FALLTHRU */ @@ -894,8 +892,7 @@ check_for_plus_in_loops (struct object_size_info *osi, tree var) switch (TREE_CODE (stmt)) { case RETURN_EXPR: - if (TREE_CODE (TREE_OPERAND (stmt, 0)) != MODIFY_EXPR) - abort (); + gcc_assert (TREE_CODE (TREE_OPERAND (stmt, 0)) == MODIFY_EXPR); stmt = TREE_OPERAND (stmt, 0); /* FALLTHRU */ @@ -1045,7 +1042,7 @@ compute_object_sizes (void) } if (!set_rhs (stmtp, result)) - abort (); + gcc_unreachable (); update_stmt (*stmtp); if (dump_file && (dump_flags & TDF_DETAILS)) |