Commit 6610a1b0 by Michael Meissner

Treat call_pop, call_value_pop like call, call_insn.

From-SVN: r1786
parent f837a861
...@@ -149,14 +149,18 @@ gen_insn (insn) ...@@ -149,14 +149,18 @@ gen_insn (insn)
} }
printf (")\n"); printf (")\n");
} }
/* Save the current insn, so that we can later put out appropriate /* Save the current insn, so that we can later put out appropriate
prototypes. At present, most md files have the wrong number of prototypes. At present, most md files have the wrong number of
arguments for call and call_value, ignoring the extra arguments arguments for the call insns (call, call_value, call_pop,
that are passed for some machines, so by default, turn off the call_value_pop) ignoring the extra arguments that are passed for
prototype. */ some machines, so by default, turn off the prototype. */
obstack_ptr = (!strcmp (name, "call") || !strcmp (name, "call_value")) obstack_ptr = (name[0] == 'c'
&& (!strcmp (name, "call")
|| !strcmp (name, "call_value")
|| !strcmp (name, "call_pop")
|| !strcmp (name, "call_value_pop")))
? &call_obstack : &normal_obstack; ? &call_obstack : &normal_obstack;
obstack_grow (obstack_ptr, &insn, sizeof (rtx)); obstack_grow (obstack_ptr, &insn, sizeof (rtx));
......
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