This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, middle-end]: Fix PR 43057, [LTO] fold check: original tree changed by fold


Hello!

Attached patch fixes PR 43057 by unsharing arg0 argument.

2010-11-20  Uros Bizjak  <ubizjak@gmail.com>

	PR middle-end/43057
	* fold-const.c (fold_ternary_loc) <COND_EXPR>: Unshare arg0 when
	converting A ? 1 : 0 to A.

Patch was bootstrapped and regression tested on x86_64-pc-linux-gnu
{,-m32}. FWIW, "--enable-checking=all" bootstrap is still running and
it already compiled up to stage-2 gcc/dse.o. I will leave the
bootstrap overnight to see if it breaks (it probably won't).

OK for mainline and 4.5?

Uros.

Attachment: p.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]