Index: llvm-gcc-4.2/gcc/unwind-dw2-fde.c |
=================================================================== |
--- a/llvm-gcc-4.2/gcc/unwind-dw2-fde.c |
+++ b/llvm-gcc-4.2/gcc/unwind-dw2-fde.c |
@@ -588,6 +588,11 @@ |
fde_split (ob, fde_compare, accu->linear, accu->erratic); |
gcc_assert (accu->linear->count + accu->erratic->count == count); |
frame_heapsort (ob, fde_compare, accu->erratic); |
+ // @LOCALMOD-BEGIN |
+ // Sorting just the erratic and then merging with the linear, |
robertm
2010/12/14 22:04:18
can you reference the bug from here as well
|
+ // can still leave it unsorted sometimes. Sort the linear as well! |
+ frame_heapsort (ob, fde_compare, accu->linear); |
+ // @LOCALMOD-END |
fde_merge (ob, fde_compare, accu->linear, accu->erratic); |
free (accu->erratic); |
} |