re PR regression/54084 (Bunch of fails for x86)

PR regression/54084
	* sel-sched-ir.c (cmp_v_in_regset_pool): Clarify logic, fix
	pointer difference check.

From-SVN: r189891
This commit is contained in:
Steven Bosscher 2012-07-26 13:21:21 +00:00
parent 6dd8f4bb61
commit d38933a003
2 changed files with 13 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2012-07-26 Steven Bosscher <steven@gcc.gnu.org>
PR regression/54084
* sel-sched-ir.c (cmp_v_in_regset_pool): Clarify logic, fix
pointer difference check.
2012-07-26 Bill Schmidt <wschmidt@linux.ibm.com>
* tree-ssa-loop-ivopts.c (mbc_entry_hash): Remove.

View file

@ -954,7 +954,13 @@ return_regset_to_pool (regset rs)
static int
cmp_v_in_regset_pool (const void *x, const void *xx)
{
return *((const regset *) x) - *((const regset *) xx);
uintptr_t r1 = (uintptr_t) *((const regset *) x);
uintptr_t r2 = (uintptr_t) *((const regset *) xx);
if (r1 > r2)
return 1;
else if (r1 < r2)
return -1;
gcc_unreachable ();
}
#endif