Message ID | 1300983995.4889.62.camel@springer.wildebeest.org |
---|---|
State | New |
Headers | show |
On 03/24/2011 09:26 AM, Mark Wielaard wrote: > /* Terminate the table. */ > - dw2_asm_output_data (1, 0, NULL); > + if (abbrev_die_table_in_use > 1) > + dw2_asm_output_data (1, 0, NULL); I'd prefer this to be handled by if (abbrev_die_table_in_use == 0) return; at the beginning of the function. Ok with that change. r~
--- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -11084,7 +11084,8 @@ output_abbrev_section (void) } /* Terminate the table. */ - dw2_asm_output_data (1, 0, NULL); + if (abbrev_die_table_in_use > 1) + dw2_asm_output_data (1, 0, NULL); } /* Output a symbol we can use to refer to this DIE from another CU. */