[PATCH, middle-end]: Fix 35526, ICE on memcpy

Uros Bizjak ubizjak@gmail.com
Tue Mar 11 11:12:00 GMT 2008


Hello!

As shown by the C++ testcase in PR middle-end/35526, we should avoid
calling convert_move if the mode of either the target or the
destination RTX is BLKmode.  Attached patch fixes this oversight by
calling emit_block_move instead.

2008-03-11  Uros Bizjak  <ubizjak@gmail.com>

	PR middle-end/35526
	* expr.c (store_expr): Call emit_block_move if the mode
	of temp RTX is BLKmode.

testsuite/ChangeLog:

2008-03-11  Uros Bizjak  <ubizjak@gmail.com>

	PR middle-end/35526

	* g++.dg/torture/pr35526.C: New test.

Patch was bootstrapped and regression tested on x86_64-pc-linux-gnu
{,-m32}. The patch also reportedly fixes original test.

OK for 4.4/4.3/4.2 ?

Uros.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: p.diff.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080311/55d5e9b2/attachment.txt>


More information about the Gcc-patches mailing list