diff options
author | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2019-11-18 20:05:16 +0000 |
---|---|---|
committer | Giuliano Belinassi <giulianob@gcc.gnu.org> | 2019-11-18 20:05:16 +0000 |
commit | eef99cd9567d40f72654faf6f21fdc65c63c9c3d (patch) | |
tree | 92ed33dfe90ac4b9908ab5e37775a2734518b0b0 /gcc/cfgloop.h | |
parent | 8d890d37e0183735586c18f1f056deb5848617ca (diff) | |
download | gcc-eef99cd9567d40f72654faf6f21fdc65c63c9c3d.zip gcc-eef99cd9567d40f72654faf6f21fdc65c63c9c3d.tar.gz gcc-eef99cd9567d40f72654faf6f21fdc65c63c9c3d.tar.bz2 |
Refactor tree-loop-distribution.c for thread safety
This patch refactors tree-loop-distribution.c for thread safety without
use of C11 __thread feature. All global variables were moved to
`class loop_distribution` which is initialized at ::execute time.
From-SVN: r278421
Diffstat (limited to 'gcc/cfgloop.h')
-rw-r--r-- | gcc/cfgloop.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cfgloop.h b/gcc/cfgloop.h index 0b0154f..6256cc0 100644 --- a/gcc/cfgloop.h +++ b/gcc/cfgloop.h @@ -376,6 +376,8 @@ extern basic_block *get_loop_body_in_dom_order (const class loop *); extern basic_block *get_loop_body_in_bfs_order (const class loop *); extern basic_block *get_loop_body_in_custom_order (const class loop *, int (*) (const void *, const void *)); +extern basic_block *get_loop_body_in_custom_order (const class loop *, void *, + int (*) (const void *, const void *, void *)); extern vec<edge> get_loop_exit_edges (const class loop *); extern edge single_exit (const class loop *); |