Fix build with GCC 4.2
[deliverable/binutils-gdb.git] / binutils / dwarf.c
index 70aa0111a6c9b09e2edad56e6d850a5011ef9ea2..5cada3704eb31f3c33d0d2982c0c70e88057e948 100644 (file)
@@ -7887,13 +7887,14 @@ display_debug_names (struct dwarf_section *section, void *file)
          abbrevptr += bytes_read;
          for (;;)
            {
-             const dwarf_vma index = read_uleb128 (abbrevptr, &bytes_read,
-                                                   abbrev_table_end);
+             const dwarf_vma xindex = read_uleb128 (abbrevptr,
+                                                    &bytes_read,
+                                                    abbrev_table_end);
              abbrevptr += bytes_read;
              const dwarf_vma form = read_uleb128 (abbrevptr, &bytes_read,
                                                   abbrev_table_end);
              abbrevptr += bytes_read;
-             if (index == 0 && form == 0)
+             if (xindex == 0 && form == 0)
                break;
            }
        }
@@ -7965,17 +7966,18 @@ display_debug_names (struct dwarf_section *section, void *file)
                printf (" %s", get_TAG_name (dwarf_tag));
              for (;;)
                {
-                 const dwarf_vma index = read_uleb128 (abbrevptr, &bytes_read,
-                                                       abbrev_table_end);
+                 const dwarf_vma xindex = read_uleb128 (abbrevptr,
+                                                        &bytes_read,
+                                                        abbrev_table_end);
                  abbrevptr += bytes_read;
                  const dwarf_vma form = read_uleb128 (abbrevptr, &bytes_read,
                                                       abbrev_table_end);
                  abbrevptr += bytes_read;
-                 if (index == 0 && form == 0)
+                 if (xindex == 0 && form == 0)
                    break;
 
                  if (tagno >= 0)
-                   printf (" %s", get_IDX_name (index));
+                   printf (" %s", get_IDX_name (xindex));
                  entryptr = read_and_display_attr_value (0, form, 0, entryptr,
                                                          unit_end, 0, 0,
                                                          offset_size,
This page took 0.027497 seconds and 4 git commands to generate.