genattrtab.c (write_function_unit_info): Add a dummy element when num_units == 0.

2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>

	* genattrtab.c (write_function_unit_info): Add a dummy element
	when num_units == 0.

From-SVN: r53067
This commit is contained in:
Vladimir Makarov 2002-05-02 21:28:24 +00:00 committed by Vladimir Makarov
parent 36ea41a31a
commit 842d5d6cbf
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
* genattrtab.c (write_function_unit_info): Add a dummy element
when num_units == 0.
2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
* predict.c: (propagate_freq, estimate_bb_frequencies): Use

View File

@ -5692,6 +5692,8 @@ write_function_unit_info ()
printf ("}, \n");
}
if (num_units == 0)
printf ("{\"dummy\", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} /* a dummy element */");
printf ("};\n\n");
}