]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/tree-eh.h
[C++] Protect call to copy_attributes_to_builtin (PR91505)
[thirdparty/gcc.git] / gcc / tree-eh.h
CommitLineData
4e57e76d 1/* Header file for exception handling.
fbd26352 2 Copyright (C) 2013-2019 Free Software Foundation, Inc.
4e57e76d 3
4This file is part of GCC.
5
6GCC is free software; you can redistribute it and/or modify it under
7the terms of the GNU General Public License as published by the Free
8Software Foundation; either version 3, or (at your option) any later
9version.
10
11GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12WARRANTY; without even the implied warranty of MERCHANTABILITY or
13FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 for more details.
15
16You should have received a copy of the GNU General Public License
17along 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
06ecf488 23
24typedef struct eh_region_d *eh_region;
25
4e57e76d 26extern void using_eh_for_cleanups (void);
42acab1c 27extern void add_stmt_to_eh_lp (gimple *, int);
28extern bool remove_stmt_from_eh_lp_fn (struct function *, gimple *);
29extern bool remove_stmt_from_eh_lp (gimple *);
30extern int lookup_stmt_eh_lp_fn (struct function *, gimple *);
31extern int lookup_stmt_eh_lp (gimple *);
1a91d914 32extern bool make_eh_dispatch_edges (geh_dispatch *);
42acab1c 33extern void make_eh_edges (gimple *);
4e57e76d 34extern edge redirect_eh_edge (edge, basic_block);
1a91d914 35extern void redirect_eh_dispatch_edge (geh_dispatch *, edge, basic_block);
4e57e76d 36extern bool operation_could_trap_helper_p (enum tree_code, bool, bool, bool,
37 bool, tree, bool *);
38extern bool operation_could_trap_p (enum tree_code, bool, bool, tree);
39extern bool tree_could_trap_p (tree);
04936b7c 40extern tree rewrite_to_non_trapping_overflow (tree);
aac19106 41extern bool stmt_could_throw_p (function *, gimple *);
4e57e76d 42extern bool tree_could_throw_p (tree);
aac19106 43extern bool stmt_can_throw_external (function *, gimple *);
44extern bool stmt_can_throw_internal (function *, gimple *);
42acab1c 45extern bool maybe_clean_eh_stmt_fn (struct function *, gimple *);
46extern bool maybe_clean_eh_stmt (gimple *);
47extern bool maybe_clean_or_replace_eh_stmt (gimple *, gimple *);
48extern bool maybe_duplicate_eh_stmt_fn (struct function *, gimple *,
49 struct function *, gimple *,
06ecf488 50 hash_map<void *, void *> *, int);
42acab1c 51extern bool maybe_duplicate_eh_stmt (gimple *, gimple *);
4e57e76d 52extern void maybe_remove_unreachable_handlers (void);
42acab1c 53extern bool verify_eh_edges (gimple *);
1a91d914 54extern bool verify_eh_dispatch_edge (geh_dispatch *);
4e57e76d 55
56#endif /* GCC_TREE_EH_H */