https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58770
s at martinien dot de changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |s at martinien dot de --- Comment #6 from s at martinien dot de --- The issue still exists in gcc7. Some numbers from the 3*10000 file inclusion benchmark here: https://tinodidriksen.com/2011/08/cpp-include-speed/ $ /usr/bin/time g++ -c guards-only/main.cpp 0:00.28 $ /usr/bin/time g++ -c pragma-only/main.cpp 0:01.46 Compared to clang, gcc's guard implementation is pretty fast: $ /usr/bin/time clang++ -c guards-only/main.cpp 0:00.92 $ /usr/bin/time clang++ -c pragma-only/main.cpp 0:00.87