aboutsummaryrefslogtreecommitdiff
path: root/gcc/genoutput.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@wolery.cumb.org>2000-02-05 04:56:11 +0000
committerZack Weinberg <zack@gcc.gnu.org>2000-02-05 04:56:11 +0000
commit706b0f603fdb637e1a88e9bbeda1645caa1089c5 (patch)
treeb63a94b017b8ea34130c545a603c44169fe90865 /gcc/genoutput.c
parentc05d48e668eada22675b4fda6efc00431e570e5b (diff)
downloadgcc-706b0f603fdb637e1a88e9bbeda1645caa1089c5.zip
gcc-706b0f603fdb637e1a88e9bbeda1645caa1089c5.tar.gz
gcc-706b0f603fdb637e1a88e9bbeda1645caa1089c5.tar.bz2
recog.h: Remove NO_MD_PROTOTYPES ifdefs.
* recog.h: Remove NO_MD_PROTOTYPES ifdefs. * genflags.c: Use the max_operand_1 logic from genemit.c to calculate how many arguments gen_insn prototypes have. Remove NO_MD_PROTOTYPES ifdefs from the generated file. * genoutput.c: Don't define NO_MD_PROTOTYPES in the generated file. Cast gen_insn initializers to insn_gen_fn. * config/alpha/vms.h: Don't define NO_MD_PROTOTYPES. * gcc.texi: Remove documentation of NO_MD_PROTOTYPES. From-SVN: r31801
Diffstat (limited to 'gcc/genoutput.c')
-rw-r--r--gcc/genoutput.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/genoutput.c b/gcc/genoutput.c
index 5fd472d..ecac9c9 100644
--- a/gcc/genoutput.c
+++ b/gcc/genoutput.c
@@ -221,7 +221,6 @@ output_prologue ()
printf ("/* Generated automatically by the program `genoutput'\n\
from the machine description file `md'. */\n\n");
- printf ("#define NO_MD_PROTOTYPES\n");
printf ("#include \"config.h\"\n");
printf ("#include \"system.h\"\n");
printf ("#include \"flags.h\"\n");
@@ -369,7 +368,7 @@ output_insn_data ()
}
if (d->name && d->name[0] != '*')
- printf (" gen_%s,\n", d->name);
+ printf (" (insn_gen_fn) gen_%s,\n", d->name);
else
printf (" 0,\n");