summaryrefslogtreecommitdiff
path: root/gcc/gengenrtl.c
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2016-02-16 01:03:54 -0800
committerYamaArashi <shadow962@live.com>2016-02-16 01:03:54 -0800
commitecae31d652106c1f3b7429570de013c3bbf33e7a (patch)
tree6981957216b10aad71c792714a25c5750611754e /gcc/gengenrtl.c
parent9382e1a90b218b4b93bf53c01ef163925cf224dc (diff)
get rid of PROTO macros
Diffstat (limited to 'gcc/gengenrtl.c')
-rwxr-xr-xgcc/gengenrtl.c31
1 files changed, 15 insertions, 16 deletions
diff --git a/gcc/gengenrtl.c b/gcc/gengenrtl.c
index 99af3d4..02cf8d3 100755
--- a/gcc/gengenrtl.c
+++ b/gcc/gengenrtl.c
@@ -40,17 +40,17 @@ struct rtx_definition defs[] =
const char *formats[NUM_RTX_CODE];
-static const char *type_from_format PROTO((int));
-static const char *accessor_from_format PROTO((int));
-static int special_format PROTO((const char *));
-static int special_rtx PROTO((int));
-static void find_formats PROTO((void));
-static void gendecl PROTO((FILE *, const char *));
-static void genmacro PROTO((FILE *, int));
-static void gendef PROTO((FILE *, const char *));
-static void genlegend PROTO((FILE *));
-static void genheader PROTO((FILE *));
-static void gencode PROTO((FILE *));
+static const char *type_from_format (int);
+static const char *accessor_from_format (int);
+static int special_format (const char *);
+static int special_rtx (int);
+static void find_formats (void);
+static void gendecl (FILE *, const char *);
+static void genmacro (FILE *, int);
+static void gendef (FILE *, const char *);
+static void genlegend (FILE *);
+static void genheader (FILE *);
+static void gencode (FILE *);
static const char *
type_from_format (c)
@@ -158,12 +158,12 @@ gendecl (f, format)
const char *p;
int i;
- fprintf (f, "extern rtx gen_rtx_fmt_%s PROTO((RTX_CODE, enum machine_mode mode",
+ fprintf (f, "extern rtx gen_rtx_fmt_%s (RTX_CODE, enum machine_mode mode",
format);
for (p = format, i = 0; *p ; ++p)
if (*p != '0')
fprintf (f, ", %s arg%d", type_from_format (*p), i++);
- fprintf (f, "));\n");
+ fprintf (f, ");\n");
}
static void
@@ -264,9 +264,8 @@ gencode (f)
fputs ("#include \"obstack.h\"\n", f);
fputs ("#include \"rtl.h\"\n\n", f);
fputs ("extern struct obstack *rtl_obstack;\n\n", f);
- fputs ("static rtx obstack_alloc_rtx PROTO((int length));\n", f);
- fputs ("static rtx obstack_alloc_rtx (length)\n", f);
- fputs (" register int length;\n{\n", f);
+ fputs ("static rtx obstack_alloc_rtx(int length)\n", f);
+ fputs ("{\n", f);
fputs (" rtx rt = (rtx) obstack_alloc (rtl_obstack, length);\n\n", f);
fputs (" zero_memory((char *) rt, sizeof(struct rtx_def) - sizeof(rtunion));\n\n", f);
fputs (" return rt;\n}\n\n", f);