Fix pasto in cse.c

Eric Botcazou ebotcazou@adacore.com
Thu Dec 4 11:48:00 GMT 2008


It was introduced by the fwprop merge and results in missed optimizations, for 
example with the attached testcase which fails on mainline and 4.3 branch but 
passes on the 4.2 branch.

Tested on i586-suse-linux, applied on the mainline and 4.3 branch.


2008-12-04  Eric Botcazou  <ebotcazou@adacore.com>

	* cse.c (equiv_constant): Fix pasto.


2008-12-04  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc.dg/union-4.c: New test.


-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cse_pasto.diff
Type: text/x-diff
Size: 460 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20081204/2be44f95/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: union-4.c
Type: text/x-csrc
Size: 416 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20081204/2be44f95/attachment-0001.bin>


More information about the Gcc-patches mailing list