Fix -Wshadow=local warning in sol_thread_target::wait
[deliverable/binutils-gdb.git] / gold / dwarf_reader.cc
index 63502479ebeebf81fb5b94f361af962fbdcb42a7..5cdb0b2525b5479f19cf295cd18c88da3740cbd0 100644 (file)
@@ -1667,6 +1667,17 @@ Sized_dwarf_line_info<size, big_endian>::read_header_prolog(
   header_.min_insn_length = *lineptr;
   lineptr += 1;
 
+  if (header_.version < 4)
+    header_.max_ops_per_insn = 1;
+  else
+    {
+      // DWARF 4 added the maximum_operations_per_instruction field.
+      header_.max_ops_per_insn = *lineptr;
+      lineptr += 1;
+      // TODO: Add support for values other than 1.
+      gold_assert(header_.max_ops_per_insn == 1);
+    }
+
   header_.default_is_stmt = *lineptr;
   lineptr += 1;
 
This page took 0.02815 seconds and 4 git commands to generate.