summaryrefslogtreecommitdiff
path: root/gcc/genflags.c
diff options
context:
space:
mode:
authormeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>1992-08-09 22:12:07 +0000
committermeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>1992-08-09 22:12:07 +0000
commit5ba9164ebb5612257a9c480d8b5947126c1b1627 (patch)
tree8aef872691ccced8f8cf1d07fee5e009be54eb4e /gcc/genflags.c
parentfb084c16ddcc197ba1b0bf88ecf62b34c87ab6fb (diff)
downloadgcc-5ba9164ebb5612257a9c480d8b5947126c1b1627.tar.gz
Treat call_pop, call_value_pop like call, call_insn.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1786 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genflags.c')
-rw-r--r--gcc/genflags.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/gcc/genflags.c b/gcc/genflags.c
index 5b104ec6ed9..7f854ec3ddb 100644
--- a/gcc/genflags.c
+++ b/gcc/genflags.c
@@ -149,14 +149,18 @@ gen_insn (insn)
}
printf (")\n");
}
-
+
/* Save the current insn, so that we can later put out appropriate
prototypes. At present, most md files have the wrong number of
- arguments for call and call_value, ignoring the extra arguments
- that are passed for some machines, so by default, turn off the
- prototype. */
-
- obstack_ptr = (!strcmp (name, "call") || !strcmp (name, "call_value"))
+ arguments for the call insns (call, call_value, call_pop,
+ call_value_pop) ignoring the extra arguments that are passed for
+ some machines, so by default, turn off the prototype. */
+
+ 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;
obstack_grow (obstack_ptr, &insn, sizeof (rtx));