[PATCH] Fix bootstrap (PR rtl-opt/29879)

Andrew Pinski pinskia@gmail.com
Sun Nov 19 20:50:00 GMT 2006

  The problem here is that fwprop.c calls flow_loops_find and
flow_loops_free directly without setting up current_loops and clearing
the loop feathers of the basic blocks after freeing the loop.
This patch fixes the problem by just using
loop_optimizer_init/loop_optimizer_finalize with current_loops instead
of having its own variable for loops.

OK? Bootstrapped and tested on i686-linux-gnu with no regressions (all
langauges). And on powerpc-darwin with no regressions (C and Fortran

Andrew Pinski

	* fwprop.c (loops): Remove.
	(forward_propagate_into): Use current_loops instead of
	(fwprop_init): Call loop_optimizer_init instead of
	(fwprop_done): Call loop_optimizer_finalize instead of
	(fwprop): Use current_loops instead of loops.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fixboot.diff.txt
Type: text/x-patch
Size: 1695 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20061119/737dd2fa/attachment.bin>

More information about the Gcc-patches mailing list