Re: Using IFUNC with template functions.

2020-11-12 Thread Florian Weimer via Gcc
* Amrita H. S. via Gcc: > I am interested to know if there any other better way to use ifuncs with > template functions. If there is none, is it worth suggesting to the C++ > standards? IFUNC is GNU-specific. It's not supported by all ELF platforms, and not even by all non-glibc Linux targets.

Using IFUNC with template functions.

2020-11-11 Thread Amrita H S via Gcc
Hi All, I want to have a template function as an ifunc. Find below my test program. // Test Program #include int glob_t = 2; typedef void (*VOID_FUNC_P)(void); template T add_isa1(T x, T y) { std::cout << "ISA1 implementation" << std::endl; return x + y; } template T add_isa2(T x, T y