This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug regression/54084] Bunch of fails for x86
- From: "steven at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 24 Jul 2012 15:31:50 +0000
- Subject: [Bug regression/54084] Bunch of fails for x86
- Auto-submitted: auto-generated
- References: <bug-54084-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54084
Steven Bosscher <steven at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |steven at gcc dot gnu.org
AssignedTo|unassigned at gcc dot |steven at gcc dot gnu.org
|gnu.org |
--- Comment #2 from Steven Bosscher <steven at gcc dot gnu.org> 2012-07-24 15:31:50 UTC ---
I suspect this is a 64-bit pointer vs. 32-bit integer issue.
Could you please test with this patch?
Index: sel-sched-ir.c
===================================================================
--- sel-sched-ir.c (revision 189808)
+++ sel-sched-ir.c (working copy)
@@ -954,7 +954,9 @@ 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);
+ intptr_t d = (intptr_t) *((const regset *) x);
+ intptr_t dd = (intptr_t) *((const regset *) xx);
+ return d - dd;
}
#endif