Trace gcc compilation and what code slows it down
c++, gcc, linux
Solution
I found it (from the gcc man page):
`-Q`
Makes the compiler print out each function name as it is compiled, and print some statistics about each pass when it finishes.
Problem
I want to find out what code causes slow compilation times in gcc. I previously had a code being compiled slowly and someone told me the command-line switch that makes gcc to print each step that it compiles, including each function/variable/symbol and so on. That helped a lot (I could literally see in console where gcc chokes), but I forgot what was the switch.