2012-01-19 Gary Benson <gbenson@redhat.com>

* mdebugread.c (sort_blocks): Replace integer constants with ones
	derived from FIRST_LOCAL_BLOCK.
This commit is contained in:
Gary Benson
2012-01-19 12:51:04 +00:00
parent 26f6125ebd
commit 4932389582
2 changed files with 7 additions and 2 deletions

View File

@@ -4713,7 +4713,7 @@ sort_blocks (struct symtab *s)
{
struct blockvector *bv = BLOCKVECTOR (s);
if (BLOCKVECTOR_NBLOCKS (bv) <= 2)
if (BLOCKVECTOR_NBLOCKS (bv) <= FIRST_LOCAL_BLOCK)
{
/* Cosmetic */
if (BLOCK_END (BLOCKVECTOR_BLOCK (bv, GLOBAL_BLOCK)) == 0)
@@ -4728,7 +4728,7 @@ sort_blocks (struct symtab *s)
* are very different. It would be nice to find a reliable test
* to detect -O3 images in advance.
*/
if (BLOCKVECTOR_NBLOCKS (bv) > 3)
if (BLOCKVECTOR_NBLOCKS (bv) > FIRST_LOCAL_BLOCK + 1)
qsort (&BLOCKVECTOR_BLOCK (bv, FIRST_LOCAL_BLOCK),
BLOCKVECTOR_NBLOCKS (bv) - FIRST_LOCAL_BLOCK,
sizeof (struct block *),