Re: Why stage1-gcc is not compiled with optimization?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux