summaryrefslogtreecommitdiffstats
path: root/gcc/ipa-type-escape.c
diff options
context:
space:
mode:
authorreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>2005-12-08 15:46:09 +0000
committerreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>2005-12-08 15:46:09 +0000
commit6276113b222aa3a5633d3aff11d9c301f2e55505 (patch)
treee1639906e1c1e7741a5d5186f82d45bc10d23605 /gcc/ipa-type-escape.c
parent84a755ae423fff9e4b03255fa62bd71576d2b4ca (diff)
downloadppe42-gcc-6276113b222aa3a5633d3aff11d9c301f2e55505.tar.gz
ppe42-gcc-6276113b222aa3a5633d3aff11d9c301f2e55505.zip
* 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/ipa-type-escape.c')
-rw-r--r--gcc/ipa-type-escape.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/gcc/ipa-type-escape.c b/gcc/ipa-type-escape.c
index a06bb1d4040..af0c2a405ba 100644
--- a/gcc/ipa-type-escape.c
+++ b/gcc/ipa-type-escape.c
@@ -1349,13 +1349,10 @@ analyze_variable (struct cgraph_varpool_node *vnode)
if (vnode->externally_visible)
mark_interesting_type (type, FULL_ESCAPE);
- if (TREE_CODE (global) == VAR_DECL)
- {
- if (DECL_INITIAL (global))
- walk_tree (&DECL_INITIAL (global), scan_for_refs,
- NULL, visited_nodes);
- }
- else abort();
+ gcc_assert (TREE_CODE (global) == VAR_DECL);
+
+ if (DECL_INITIAL (global))
+ walk_tree (&DECL_INITIAL (global), scan_for_refs, NULL, visited_nodes);
}
/* This is the main routine for finding the reference patterns for
OpenPOWER on IntegriCloud