mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 04:22:27 +01:00
5e929ee8a0
On clang, use __builtin_readcyclecounter() when available. Hinted by Sergey Vojtovich. (This may lead to runtime failure on ARM systems. The hardware should be available on ARMv8 (AArch64), but access to it may require special privileges.) We remove support for the proprietary Sun Microsystems compiler, and rely on clang or the __GNUC__ assembler syntax instead. For now, we retain support for IA-64 (Itanium) and 32-bit SPARC, even though those platforms are likely no longer widely used. We remove support for clock_gettime(CLOCK_SGI_CYCLE), because Silicon Graphics ceased supporting IRIX in December 2013. This was the only cycle timer interface available for MIPS. On PowerPC, we rely on the GCC 4.8 __builtin_ppc_get_timebase() (or clang __builtin_readcyclecounter()), which should be equivalent to the old assembler code on both 64-bit and 32-bit targets. |
||
---|---|---|
.. | ||
AIX.cmake | ||
Cygwin.cmake | ||
Darwin.cmake | ||
FreeBSD.cmake | ||
GNU.cmake | ||
HP-UX.cmake | ||
Linux.cmake | ||
OS400.cmake | ||
SunOS.cmake | ||
Windows.cmake | ||
WindowsCache.cmake |