Refactor tree-loop-distribution.c for thread safety
authorGiuliano Belinassi <giuliano.belinassi@usp.br>
Mon, 18 Nov 2019 20:05:16 +0000 (20:05 +0000)
committerGiuliano Belinassi <giulianob@gcc.gnu.org>
Mon, 18 Nov 2019 20:05:16 +0000 (20:05 +0000)
commiteef99cd9567d40f72654faf6f21fdc65c63c9c3d
tree92ed33dfe90ac4b9908ab5e37775a2734518b0b0
parent8d890d37e0183735586c18f1f056deb5848617ca
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
gcc/ChangeLog
gcc/cfgloop.c
gcc/cfgloop.h
gcc/tree-loop-distribution.c