Blame SOURCES/binutils-2.27-remove-dwarf2-minmax.patch

74659d
--- binutils.orig/bfd/dwarf2.c	2017-08-08 17:40:39.084385407 +0100
74659d
+++ binutils-2.27/bfd/dwarf2.c	2017-08-08 17:41:34.237754733 +0100
74659d
@@ -215,9 +215,6 @@ struct comp_unit
74659d
   /* Linked list of the low and high address ranges contained in this
74659d
      compilation unit as specified in the compilation unit header.  */
74659d
   struct arange arange;
74659d
-  /* A single arange containing the lowest and highest
74659d
-     addresses covered by the compilation unit.  */
74659d
-  struct arange minmax;
74659d
 
74659d
   /* The DW_AT_name attribute (for error messages).  */
74659d
   char *name;
74659d
@@ -1540,16 +1537,11 @@ arange_add (struct comp_unit *unit, stru
74659d
   /* If the first arange is empty, use it.  */
74659d
   if (first_arange->high == 0)
74659d
     {
74659d
-      unit->minmax.low = first_arange->low = low_pc;
74659d
-      unit->minmax.high = first_arange->high = high_pc;
74659d
+      first_arange->low = low_pc;
74659d
+      first_arange->high = high_pc;
74659d
       return TRUE;
74659d
     }
74659d
 
74659d
-  if (unit->minmax.low > low_pc)
74659d
-    unit->minmax.low = low_pc;
74659d
-  if (unit->minmax.high < high_pc)
74659d
-    unit->minmax.high = high_pc;
74659d
-  
74659d
   /* Next see if we can cheaply extend an existing range.  */
74659d
   arange = first_arange;
74659d
   do
74659d
@@ -3151,9 +3143,6 @@ comp_unit_contains_address (struct comp_
74659d
   if (unit->error)
74659d
     return FALSE;
74659d
 
74659d
-  if (unit->minmax.high < addr || unit->minmax.low > addr)
74659d
-    return FALSE;
74659d
-
74659d
   /* We know that the address *might* be contained within this comp
74659d
      unit, but we cannot be sure until we check the specific ranges.  */
74659d
   arange = &unit->arange;