On 12/04/13 03:40, Richard Biener wrote:
On Wed, Dec 4, 2013 at 11:07 AM, Eric Botcazou <ebotca...@adacore.com> wrote:
Fixed by making sure force_to_mode doesn't modify x in place.

I think that it's the way to go, force_to_mode doesn't modify its argument
except for these 2 cases.  I'm not sure what the story is, but calling SUBST
for these 2 cases doesn't seem really necessary.

Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk/4.8?

2013-12-03  Jakub Jelinek  <ja...@redhat.com>

       PR rtl-optimization/58726
       * combine.c (force_to_mode): Fix comment typo.  Don't destructively
       modify x for ROTATE, ROTATERT and IF_THEN_ELSE.

       * gcc.c-torture/execute/pr58726.c: New test.

IMO it's the best fix at this point of the release cycles.

I agree.
I can live with the nagging feeling that we've got a deeper problem here :-) So I won't object to this approach.

jeff

Reply via email to