On Sun, May 15, 2022 at 04:18:12PM +0200, Mohamed Atef wrote: > Ping > > في الجمعة، ١٣ مايو، ٢٠٢٢ ٩:١٩ م Mohamed Atef <mohamedatef1...@gmail.com> > كتب: > > > Hello Jakub, > > I am sorry, but should #ifdef __ELF__ put and separate file and also > > the actual functions (e.g. extern ompd_dll_location_valid (void)) > > I mean both in the same files or the functions should be in the > > omp-tools.h but with #ifndef __ELF__
I thought everything has been said. omp-tools.h.in should contain prototypes like: extern void ompd_bp_parallel_begin (void) __GOMPD_NOTHROW; ompd-support.h should contain macros like: #ifdef __ELF__ #define ompd_bp_parallel_begin() \ __asm__ __volatile__ (".globl ompd_bp_parallel_begin\n\t" \ "ompd_bp_parallel_begin:") ompd-support.c should contain dummy function definitions like: #ifndef __ELF__ /* Dummy functions. they shoud not be optimized. */ ... void __attribute__ ((noipa)) ompd_bp_parallel_begin () { } #endif Jakub