Commit bd1b0893 by Ian Lance Taylor

Skip optimize_attrs if num_insn_ents is zero

From-SVN: r8265
parent 6f673359
...@@ -3304,6 +3304,9 @@ optimize_attrs () ...@@ -3304,6 +3304,9 @@ optimize_attrs ()
/* For each insn code, make a list of all the insn_ent's for it, /* For each insn code, make a list of all the insn_ent's for it,
for all values for all attributes. */ for all values for all attributes. */
if (num_insn_ents == 0)
return;
/* Make 2 extra elements, for "code" values -2 and -1. */ /* Make 2 extra elements, for "code" values -2 and -1. */
insn_code_values insn_code_values
= (struct attr_value_list **) alloca ((insn_code_number + 2) = (struct attr_value_list **) alloca ((insn_code_number + 2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment