How to rebuild stage 1?

Paolo Bonzini bonzini@gnu.org
Fri Dec 16 08:56:00 GMT 2005


H. J. Lu wrote:
> How can I rebuild stage 1 compiler with the system compiler? I used
> to be able to do
> 
> # cd gcc
> # make unstage1
> # make restage1
> 
> But now ./prev-gcc/xgcc is used to build stage 1 compiler, not the
> system compiler.

If the old bootstrap mechanism had already been garbage collected, you 
would not have succeeded in doing "make unstage1" or "make restage1".

What you want is, from the *toplevel* directory, "make all-stage1".  I 
can rename it to "make restage1" if people care enough, but I think the 
new name fits more the toplevel Makefile's naming of targets (where you 
have all-host, all-target, etc.).

Paolo



More information about the Gcc mailing list