On 02/21/2017 08:58 PM, Xi Ruoyao wrote:
Hello everyone, When I was building GCC, I found out that stage1-gcc is not compiled with optimization (such as -O2). So the compilation of stage2 is very slow. Is this intended or not? If not, did I made some mistakes in configure options and caused this?
My best guess is to minimize the risk of GCC getting miscompiled. The following ancient thread asks the same question and confirms the rationale above: https://gcc.gnu.org/ml/gcc-patches/1998-11/msg00172.html Martin