diff options
author | Michael Meissner <meissner@gcc.gnu.org> | 1992-08-09 22:12:07 +0000 |
---|---|---|
committer | Michael Meissner <meissner@gcc.gnu.org> | 1992-08-09 22:12:07 +0000 |
commit | 6610a1b06aa75f7919877ef1ec2bc10c78356ac6 (patch) | |
tree | 8aef872691ccced8f8cf1d07fee5e009be54eb4e /gcc/genflags.c | |
parent | f837a86171d0debc8546b9069deaf8968f251a06 (diff) | |
download | gcc-6610a1b06aa75f7919877ef1ec2bc10c78356ac6.zip gcc-6610a1b06aa75f7919877ef1ec2bc10c78356ac6.tar.gz gcc-6610a1b06aa75f7919877ef1ec2bc10c78356ac6.tar.bz2 |
Treat call_pop, call_value_pop like call, call_insn.
From-SVN: r1786
Diffstat (limited to 'gcc/genflags.c')
-rw-r--r-- | gcc/genflags.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/gcc/genflags.c b/gcc/genflags.c index 5b104ec..7f854ec 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)); |