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]

Re: [PATCH] Fix simplify_builtin_call in forwprop (PR tree-optimization/46461)


On 11/15/10 13:16, Jakub Jelinek wrote:
Hi!

When stmt1 is a byte store instead of memcpy, ptr1 can be
something that is not is_gimple_val.  Fixed thusly, bootstrapped/regtested
on x86_64-linux and i686-linux.  Ok for trunk?

Alternatively the conditional could be left out, as force_gimple_operand_gsi
will do nothing if it is is_gimple_val already (but will call is_gimple_val
twice and a couple of other checks).

2010-11-15 Jakub Jelinek<jakub@redhat.com>

	PR tree-optimization/46461
	* tree-ssa-forwprop.c (simplify_builtin_call): Ensure ptr1 is
	a gimple val.

* gcc.c-torture/compile/pr46461.c: New test.
OK.
jeff


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