File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,7 @@ OMPD_FOREACH_BITFIELD(ompd_declare_bitfield)
22
22
OMPD_FOREACH_SIZEOF (ompd_declare_sizeof)
23
23
#undef ompd_declare_sizeof
24
24
25
- const char * * ompd_dll_locations=NULL ;
26
- const char * ompd_my_dll_locations[2 ] = {" libompd.so" ,NULL };
25
+ volatile const char * * ompd_dll_locations=NULL ;
27
26
uint64_t ompd_state=0 ;
28
27
29
28
int ompd_rtl_version = 7 ;
@@ -64,6 +63,9 @@ void ompd_init()
64
63
OMPD_FOREACH_SIZEOF (ompd_init_sizeof)
65
64
#undef ompd_init_sizeof
66
65
66
+ volatile static const char * ompd_my_dll_locations[2 ] = {" libompd.so" ,NULL };
67
+
68
+
67
69
const char *ompd_env_var = getenv (" OMP_OMPD" );
68
70
if (ompd_env_var && !strcmp (ompd_env_var, " on" ))
69
71
{
Original file line number Diff line number Diff line change 7
7
#ifdef OMPD_SUPPORT
8
8
9
9
void ompd_init ();
10
- extern const char * * ompd_dll_locations ;
10
+ extern volatile const char * * ompd_dll_locations ;
11
11
extern int ompd_rtl_version ;
12
12
13
13
#ifdef __cplusplus
14
14
extern "C" {
15
15
#endif
16
- void ompd_dll_locations_valid ( void );
17
- void ompd_bp_parallel_begin ( void );
18
- void ompd_bp_parallel_end ( void );
19
- void ompd_bp_task_begin ( void );
20
- void ompd_bp_task_end ( void );
21
- void ompd_bp_thread_begin ( void );
22
- void ompd_bp_thread_end ( void );
16
+ void __attribute__ (( noinline )) ompd_dll_locations_valid ( void );
17
+ void __attribute__ (( noinline )) ompd_bp_parallel_begin ( void );
18
+ void __attribute__ (( noinline )) ompd_bp_parallel_end ( void );
19
+ void __attribute__ (( noinline )) ompd_bp_task_begin ( void );
20
+ void __attribute__ (( noinline )) ompd_bp_task_end ( void );
21
+ void __attribute__ (( noinline )) ompd_bp_thread_begin ( void );
22
+ void __attribute__ (( noinline )) ompd_bp_thread_end ( void );
23
23
#ifdef __cplusplus
24
24
} /* extern "C" */
25
25
#endif
You can’t perform that action at this time.
0 commit comments