[PATCH] Fix PR31529, ICE with IMA and redefined extern inline fns

Richard Guenther rguenther@suse.de
Wed Jan 23 17:50:00 GMT 2008


On Wed, 23 Jan 2008, Richard Guenther wrote:

> 
> We were missing to lower the function body after replacing it in the
> second translation unit.  The problem is that while if you finish
> the TU with cgraph, all bodies get lowered, but for the second TU
> only those get lowered that are not yet needed (as re-processing
> is triggered only by re-queuing the node).
> 
> Fixed by always clearing the reachable flag if the node is not yet
> queued on node override.
> 
> Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to mainline.
> 
> I also tried bootstrapping with --enable-intermodule but killed that
> after it needed 3GB of ram during stage2 build of libbackend.o ...

On a bigger box this succeeded for a C only bootstrap and even
regression tests look fine.

Richard.



More information about the Gcc-patches mailing list