• Marko Mäkelä's avatar
    MDEV-23618 InnoDB lacks IA-32 CRC-32C acceleration on GCC 4 · 9ef36faa
    Marko Mäkelä authored
    When MDEV-22669 introduced CRC-32C acceleration to IA-32,
    it worked around a compiler bug by disabling the acceleration
    on GCC 4 for IA-32 altogether, even though the compiler bug
    only affects -fPIC builds that are targeting IA-32.
    
    Let us extend the solution fe5dbfe7
    and define HAVE_CPUID_INSTRUCTION that allows us to implement
    a necessary and sufficient work-around of the compiler bug.
    9ef36faa
ut0crc32.cc 11.9 KB