------- Comment #50 from hjl dot tools at gmail dot com  2008-04-21 16:18 
-------
(In reply to comment #49)
> Subject: Re:  [4.3/4.4 Regression]: Combined gcc + binutils
>  source tree doesn't bootstrap with --enable-shared
> 
> 
> > I don't think it is a problem since this problem is limited to that the
> > new linker is used to relink itself, which leads to a infinite recursive
> > loop.
> 
> The same thing could happen when the new assembler is relinked itself, 
> if the relink was actually an LTO pass (at the end you assemble the 
> result of whole-program optimization, and reach an infinite loop).
> 

The sequence for LTO will be

1. Gcc calls ld for LTO.
2. ld calls as to assemble assembly code.
3. as calls ld to relink itself.
   3.1 ld calls the previous linker to relink itself to create lt-ld.
   3.2 lt-ld is used to relink as to create lt-as
   3.3 lt-as is used to assemble assembly code.
4. lt-ld is used to finish LTO.

Will LTO be applied on the fully linked linker in step 3.1? If yes, can we
disable LTO for step 3.1?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35752

Reply via email to