GCC Middle and Back End API Reference
tree-eh.h
Go to the documentation of this file.
1 /* Header file for exception handling.
2  Copyright (C) 2013 Free Software Foundation, Inc.
3 
4 This file is part of GCC.
5 
6 GCC is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free
8 Software Foundation; either version 3, or (at your option) any later
9 version.
10 
11 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14  for more details.
15 
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING3. If not see
18 <http://www.gnu.org/licenses/>. */
19 
20 #ifndef GCC_TREE_EH_H
21 #define GCC_TREE_EH_H
22 
23 extern void using_eh_for_cleanups (void);
24 extern void add_stmt_to_eh_lp (gimple, int);
25 extern bool remove_stmt_from_eh_lp_fn (struct function *, gimple);
26 extern bool remove_stmt_from_eh_lp (gimple);
27 extern int lookup_stmt_eh_lp_fn (struct function *, gimple);
28 extern int lookup_stmt_eh_lp (gimple);
29 extern bool make_eh_dispatch_edges (gimple);
30 extern void make_eh_edges (gimple);
33 extern bool operation_could_trap_helper_p (enum tree_code, bool, bool, bool,
34  bool, tree, bool *);
35 extern bool operation_could_trap_p (enum tree_code, bool, bool, tree);
36 extern bool tree_could_trap_p (tree);
37 extern bool stmt_could_throw_p (gimple);
38 extern bool tree_could_throw_p (tree);
39 extern bool stmt_can_throw_external (gimple);
40 extern bool stmt_can_throw_internal (gimple);
41 extern bool maybe_clean_eh_stmt_fn (struct function *, gimple);
42 extern bool maybe_clean_eh_stmt (gimple);
44 extern bool maybe_duplicate_eh_stmt_fn (struct function *, gimple,
45  struct function *, gimple,
46  struct pointer_map_t *, int);
48 extern void maybe_remove_unreachable_handlers (void);
49 extern bool verify_eh_edges (gimple);
50 extern bool verify_eh_dispatch_edge (gimple);
51 
52 #endif /* GCC_TREE_EH_H */