diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6361a8696c9..85db4eeff13 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-05-02 Vladimir Makarov + + * genattrtab.c (write_function_unit_info): Add a dummy element + when num_units == 0. + 2002-05-02 Herman A.J. ten Brugge * predict.c: (propagate_freq, estimate_bb_frequencies): Use diff --git a/gcc/genattrtab.c b/gcc/genattrtab.c index d78972cc87c..2e2b0015034 100644 --- a/gcc/genattrtab.c +++ b/gcc/genattrtab.c @@ -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"); }