Fix PR bootstrap/13853

Eric Botcazou ebotcazou@act-europe.fr
Sun Jan 25 20:13:00 GMT 2004


This patch

2004-01-18  Jan Hubicka  <jh@suse.cz>

	* basic-block.h (try_redirect_by_replacing_jump): Declare.
	* cfgcleanup.c (try_optimize_cfg): Use it.
	* cfgrtl.c (try_redirect_by_replacing_jump): Export.
	(rtl_redirect_edge_and_branch, cfg_layout_redirect_edge_and_branch):
	Kill hack.
	(cfg_layout_merge_blocks): Use try_redirect_by_replacing_jump.

causes the stage1 compiler to be miscompiled by GNAT 3.1x and probably other 
relatively old compilers.  The problem pertains to the use of 'bool'.

Fixed by the attached patch.  Bootstrapped on i586-redhat-linux-gnu 
(3.4 branch, c and ada), applied to mainline and 3.4 branch as obvious.


2004-01-25  Eric Botcazou  <ebotcazou@act-europe.fr>

	PR bootstrap/13853
	* cfgcleanup.c (try_optimize_cfg): Explicitly test against 0.


-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr13853.diff
Type: text/x-diff
Size: 627 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20040125/26b4d656/attachment.bin>


More information about the Gcc-patches mailing list