Message ID | 20161030193147.GA6778@host1.jankratochvil.net |
---|---|
State | New |
Headers | show |
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 7c6a9e9..1c0ca35 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -2977,7 +2977,8 @@ skeleton_chain_node; /* Fixed size portion of the DWARF compilation unit header. */ #define DWARF_COMPILE_UNIT_HEADER_SIZE \ - (DWARF_INITIAL_LENGTH_SIZE + DWARF_OFFSET_SIZE + 3) + (DWARF_INITIAL_LENGTH_SIZE + DWARF_OFFSET_SIZE \ + + (dwarf_version < 5 ? 3 : 4 + 8 + DWARF_OFFSET_SIZE)) /* Fixed size portion of the DWARF comdat type unit header. */ #define DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE \