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

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


Hi,
  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
only).

Thanks,
Andrew Pinski

	* fwprop.c (loops): Remove.
	(forward_propagate_into): Use current_loops instead of
	loops.
	(fwprop_init): Call loop_optimizer_init instead of
	flow_loops_find.
	(fwprop_done): Call loop_optimizer_finalize instead of
	flow_loops_free.
	(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