mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-19 03:40:26 +08:00
stmt.c (case_bit_test_cmp): Stabilize the sort using code label numbers.
* stmt.c (case_bit_test_cmp): Stabilize the sort using code label numbers. From-SVN: r110021
This commit is contained in:
parent
c11fd0b206
commit
0174997a11
@ -1,3 +1,8 @@
|
||||
2006-01-20 Richard Sandiford <richard@codesourcery.com>
|
||||
|
||||
* stmt.c (case_bit_test_cmp): Stabilize the sort using code
|
||||
label numbers.
|
||||
|
||||
2006-01-20 Richard Guenther <rguenther@suse.de>
|
||||
Steven Bosscher <stevenb.gcc@gmail.com>
|
||||
|
||||
|
@ -2170,7 +2170,11 @@ case_bit_test_cmp (const void *p1, const void *p2)
|
||||
const struct case_bit_test *d1 = p1;
|
||||
const struct case_bit_test *d2 = p2;
|
||||
|
||||
return d2->bits - d1->bits;
|
||||
if (d2->bits != d1->bits)
|
||||
return d2->bits - d1->bits;
|
||||
|
||||
/* Stabilize the sort. */
|
||||
return CODE_LABEL_NUMBER (d2->label) - CODE_LABEL_NUMBER (d1->label);
|
||||
}
|
||||
|
||||
/* Expand a switch statement by a short sequence of bit-wise
|
||||
|
Loading…
x
Reference in New Issue
Block a user