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)
2222OMPD_FOREACH_SIZEOF (ompd_declare_sizeof)
2323#undef ompd_declare_sizeof
2424
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 ;
2726uint64_t ompd_state=0 ;
2827
2928int ompd_rtl_version = 7 ;
@@ -64,6 +63,9 @@ void ompd_init()
6463 OMPD_FOREACH_SIZEOF (ompd_init_sizeof)
6564#undef ompd_init_sizeof
6665
66+ volatile static const char * ompd_my_dll_locations[2 ] = {" libompd.so" ,NULL };
67+
68+
6769 const char *ompd_env_var = getenv (" OMP_OMPD" );
6870 if (ompd_env_var && !strcmp (ompd_env_var, " on" ))
6971 {
Original file line number Diff line number Diff line change 77#ifdef OMPD_SUPPORT
88
99void ompd_init ();
10- extern const char * * ompd_dll_locations ;
10+ extern volatile const char * * ompd_dll_locations ;
1111extern int ompd_rtl_version ;
1212
1313#ifdef __cplusplus
1414extern "C" {
1515#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 );
2323#ifdef __cplusplus
2424} /* extern "C" */
2525#endif
You can’t perform that action at this time.
0 commit comments