Commit d38933a0 by Steven Bosscher

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
parent 6dd8f4bb
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> 2012-07-26 Bill Schmidt <wschmidt@linux.ibm.com>
* tree-ssa-loop-ivopts.c (mbc_entry_hash): Remove. * tree-ssa-loop-ivopts.c (mbc_entry_hash): Remove.
......
...@@ -954,7 +954,13 @@ return_regset_to_pool (regset rs) ...@@ -954,7 +954,13 @@ return_regset_to_pool (regset rs)
static int static int
cmp_v_in_regset_pool (const void *x, const void *xx) 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 #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment