https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66682
Mikhail Maltsev <miyuki at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |miyuki at gcc dot gnu.org --- Comment #5 from Mikhail Maltsev <miyuki at gcc dot gnu.org> --- GCC 4.8.5 is the last release in 4.8 branch, so I think a reasonable solution is to update GCC to newer version. For example, when compiling with "-O0 -g" on my box I get the following build times: GCC 4.8.3 - 2m20.813s GCC 4.9.2 - 0m12.244s GCC 6 (current trunk) - 0m10.899s Clang 3.7 (current trunk) - 0m9.378s ICC 15.0.3.187 - 0m7.753s At -O1: GCC 4.8.3 - 1m44.917s GCC 4.9.2 - 0m16.082s GCC 6 - 0m15.507s Clang 3.7 - 0m18.897s ICC - 0m18.727s As you see, GCC 4.9 and 6 are faster than ICC and Clang in this testcase. So it's a bug in 4.8 which has been fixed.