summaryrefslogtreecommitdiffstats
path: root/gcc/genconfig.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1998-03-24 10:16:53 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1998-03-24 10:16:53 +0000
commit5ce881987ccfcfadb40f75b9cadc07925aaea2f7 (patch)
tree8e8fe251c2a002a4dde07af7250735032cb7cb48 /gcc/genconfig.c
parentca0c4f4301de08b5fb0584d7c0215a615ec8eeb6 (diff)
downloadppe42-gcc-5ce881987ccfcfadb40f75b9cadc07925aaea2f7.tar.gz
ppe42-gcc-5ce881987ccfcfadb40f75b9cadc07925aaea2f7.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18794 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genconfig.c')
-rw-r--r--gcc/genconfig.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/gcc/genconfig.c b/gcc/genconfig.c
index 0476295aecf..69f9240983f 100644
--- a/gcc/genconfig.c
+++ b/gcc/genconfig.c
@@ -20,26 +20,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 ();
-
/* flags to determine output of machine description dependent #define's. */
static int max_recog_operands; /* Largest operand number seen. */
static int max_dup_operands; /* Largest number of match_dup in any insn. */
@@ -55,9 +46,9 @@ static int max_insns_per_split = 1;
static int clobbers_seen_this_insn;
static int dup_operands_seen_this_insn;
-char *xmalloc ();
+char *xmalloc PROTO((unsigned));
static void fatal ();
-void fancy_abort ();
+void fancy_abort PROTO((void));
/* RECOG_P will be non-zero if this pattern was seen in a context where it will
be used to recognize, rather than just generate an insn.
OpenPOWER on IntegriCloud