summaryrefslogtreecommitdiff
path: root/gcc/genpeep.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1998-03-24 10:16:53 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1998-03-24 10:16:53 +0000
commit0b93b64e20444a5a105b0cb9935b7841486559aa (patch)
tree8e8fe251c2a002a4dde07af7250735032cb7cb48 /gcc/genpeep.c
parent4c5f3fcd5a8c167c4e780243f68bab8ffccf0dc2 (diff)
downloadgcc-0b93b64e20444a5a105b0cb9935b7841486559aa.tar.gz
Cutover various gen*.c files to using system.h:
* Makefile.in (genconfig.o, genflags.o, gencodes.o, genemit.o, genopinit.o, genrecog.o, genextract.o, genpeep.o, genattr.o, genattrtab.o, genoutput.o): Depend on system.h. * genattr.c: Include system.h. Add arguments to various function prototypes. Remove redundant prototype of read_rtx(). * genattrtab.c: Likewise. * gencodes.c: Likewise. * genconfig.c: Likewise. * genemit.c: Likewise. * genextract.c: Likewise. * genflags.c: Likewise. * genopinit.c: Likewise. * genoutput.c: Likewise. * genpeep.c: Likewise. * genrecog.c: Likewise. From-SVN: r18794
Diffstat (limited to 'gcc/genpeep.c')
-rw-r--r--gcc/genpeep.c21
1 files changed, 6 insertions, 15 deletions
diff --git a/gcc/genpeep.c b/gcc/genpeep.c
index df03042551a..46646d3402b 100644
--- a/gcc/genpeep.c
+++ b/gcc/genpeep.c
@@ -19,26 +19,17 @@ the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-#include <stdio.h>
#include "hconfig.h"
+#include "system.h"
#include "rtl.h"
#include "obstack.h"
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
static struct obstack obstack;
struct obstack *rtl_obstack = &obstack;
#define obstack_chunk_alloc xmalloc
#define obstack_chunk_free free
-#ifdef NEED_DECLARATION_FREE
-extern void free ();
-#endif
-extern rtx read_rtx ();
-
/* While tree-walking an instruction pattern, we keep a chain
of these `struct link's to record how to get down to the
current position. In each one, POS is the operand number,
@@ -52,10 +43,10 @@ struct link
int vecelt;
};
-char *xmalloc ();
-static void match_rtx ();
+char *xmalloc PROTO((unsigned));
+static void match_rtx PROTO((rtx, struct link *, int));
static void fatal ();
-void fancy_abort ();
+void fancy_abort PROTO((void));
static int max_opno;
@@ -68,8 +59,8 @@ static int n_operands;
static int insn_code_number = 0;
-static void print_path ();
-static void print_code ();
+static void print_path PROTO((struct link *));
+static void print_code PROTO((RTX_CODE));
static void
gen_peephole (peep)