https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87256
--- Comment #10 from John David Anglin <danglin at gcc dot gnu.org> --- This patch improves things by about a factor 4: Index: expmed.h =================================================================== --- expmed.h (revision 271111) +++ expmed.h (working copy) @@ -128,7 +128,7 @@ /* The number of cache/hash entries. */ #if HOST_BITS_PER_WIDE_INT == 64 -#define NUM_ALG_HASH_ENTRIES 1031 +#define NUM_ALG_HASH_ENTRIES 4093 #else #define NUM_ALG_HASH_ENTRIES 307 #endif