Summary: fixed the warning from gcc since prios 0-100 are reserved for the internal use.
Reviewers: grokos
Subscribers: kkwli0, caomhin, openmp-commits
Tags: #openmp
Differential Revision: https://reviews.llvm.org/D75458
HostPtrToTableMapTy *HostPtrToTableMap;
std::mutex *TblMapMtx;
-__attribute__((constructor(0))) void init() {
+__attribute__((constructor(101))) void init() {
DP("Init target library!\n");
RTLs = new RTLsTy();
RTLsMtx = new std::mutex();
TblMapMtx = new std::mutex();
}
-__attribute__((destructor(0))) void deinit() {
+__attribute__((destructor(101))) void deinit() {
DP("Deinit target library!\n");
delete RTLs;
delete RTLsMtx;