Re: [debug] dwarf2out emits unnecessary null byte in empty .debug_abbrev section

2011-03-24 Thread Richard Henderson
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~


Re: [debug] dwarf2out emits unnecessary null byte in empty .debug_abbrev section

2011-03-24 Thread Richard Henderson
On 03/24/2011 01:54 PM, Mark Wielaard wrote:
 +  if (abbrev_die_table_in_use == 1)
 +return;
 +
for (abbrev_id = 1; abbrev_id  abbrev_die_table_in_use; ++abbrev_id)
  {
dw_die_ref abbrev = abbrev_die_table[abbrev_id];
 
 Still OK?

Yes.


r~