Re: [PATCH] Fix a typo in range_entry_cmp (PR tree-optimization/61686)

2014-12-10 Thread Marek Polacek
On Wed, Dec 10, 2014 at 08:59:09AM +0100, Jakub Jelinek wrote: On Wed, Dec 10, 2014 at 07:57:46AM +0100, Marek Polacek wrote: I don't really know this code, but this typo looks obvious enough. Using if (p-high != NULL_TREE) ... else if (p-high != NULL_TREE) couldn't be possibly desired, so

[PATCH] Fix a typo in range_entry_cmp (PR tree-optimization/61686)

2014-12-09 Thread Marek Polacek
I don't really know this code, but this typo looks obvious enough. Using if (p-high != NULL_TREE) ... else if (p-high != NULL_TREE) couldn't be possibly desired, so use Q in the else branch, as in the code slightly above. Bootstrapped/regtested on x86_64-linux and ppc64-linux, ok for trunk?

Re: [PATCH] Fix a typo in range_entry_cmp (PR tree-optimization/61686)

2014-12-09 Thread Jakub Jelinek
On Wed, Dec 10, 2014 at 07:57:46AM +0100, Marek Polacek wrote: I don't really know this code, but this typo looks obvious enough. Using if (p-high != NULL_TREE) ... else if (p-high != NULL_TREE) couldn't be possibly desired, so use Q in the else branch, as in the code slightly above.