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