Commit 0174997a by Richard Sandiford Committed by Richard Sandiford

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
parent c11fd0b2
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
......
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