Commit 5987a4f3 by Kaveh Ghazi

genattr.c: Wrap prototype of `free' in NEED_DECLARATION_FREE.

        * genattr.c: Wrap prototype of `free' in NEED_DECLARATION_FREE.
        * genattrtab.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.
        * tlink.c: Likewise.  Also wrap `getenv' in NEED_DECLARATION_GETENV.

From-SVN: r18284
parent 81ce6e9a
/* Generate attribute information (insn-attr.h) from machine description.
Copyright (C) 1991, 1994, 1996 Free Software Foundation, Inc.
Copyright (C) 1991, 1994, 1996, 1998 Free Software Foundation, Inc.
Contributed by Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
This file is part of GNU CC.
......@@ -35,7 +35,9 @@ struct obstack *rtl_obstack = &obstack;
#define obstack_chunk_alloc xmalloc
#define obstack_chunk_free free
#ifdef NEED_DECLARATION_FREE
extern void free PROTO((void *));
#endif
extern rtx read_rtx PROTO((FILE *));
char *xmalloc PROTO((unsigned));
......
......@@ -140,7 +140,9 @@ struct obstack *temp_obstack = &obstack2;
/* Define this so we can link with print-rtl.o to get debug_rtx function. */
char **insn_name_ptr = 0;
#ifdef NEED_DECLARATION_FREE
extern void free ();
#endif
extern rtx read_rtx ();
static void fatal ();
......
/* Generate from machine description:
- some #define configuration flags.
Copyright (C) 1987, 1991, 1997 Free Software Foundation, Inc.
Copyright (C) 1987, 1991, 1997, 1998 Free Software Foundation, Inc.
This file is part of GNU CC.
......@@ -35,7 +35,9 @@ 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. */
......
/* Generate code from machine description to emit insns as rtl.
Copyright (C) 1987, 88, 91, 94, 95, 1997 Free Software Foundation, Inc.
Copyright (C) 1987, 88, 91, 94, 95, 97, 1998 Free Software Foundation, Inc.
This file is part of GNU CC.
......@@ -34,7 +34,9 @@ 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 ();
char *xmalloc ();
......
/* Generate code from machine description to extract operands from insn as rtl.
Copyright (C) 1987, 1991, 1992, 1993, 1997 Free Software Foundation, Inc.
Copyright (C) 1987, 91, 92, 93, 97, 1998 Free Software Foundation, Inc.
This file is part of GNU CC.
......@@ -35,7 +35,9 @@ 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 ();
/* Names for patterns. Need to allow linking with print-rtl. */
......
......@@ -2,7 +2,7 @@
- some flags HAVE_... saying which simple standard instructions are
available for this machine.
Copyright (C) 1987, 1991, 1995 Free Software Foundation, Inc.
Copyright (C) 1987, 1991, 1995, 1998 Free Software Foundation, Inc.
This file is part of GNU CC.
......@@ -37,7 +37,9 @@ 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 ();
char *xmalloc ();
......
......@@ -36,7 +36,9 @@ 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 ();
char *xmalloc ();
......
/* Generate code from to output assembler insns as recognized from rtl.
Copyright (C) 1987, 88, 92, 94, 95, 1997 Free Software Foundation, Inc.
Copyright (C) 1987, 88, 92, 94, 95, 97, 1998 Free Software Foundation, Inc.
This file is part of GNU CC.
......@@ -111,7 +111,9 @@ 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 ();
char *xmalloc ();
......
/* Generate code from machine description to perform peephole optimizations.
Copyright (C) 1987, 1989, 1992, 1997 Free Software Foundation, Inc.
Copyright (C) 1987, 1989, 1992, 1997, 1998 Free Software Foundation, Inc.
This file is part of GNU CC.
......@@ -34,7 +34,9 @@ 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
......
......@@ -61,7 +61,9 @@ 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 ();
/* Data structure for a listhead of decision trees. The alternatives
......
......@@ -49,8 +49,12 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#define obstack_chunk_free free
extern char * xmalloc PARAMS((unsigned));
#ifdef NEED_DECLARATION_FREE
extern void free ();
#endif
#ifdef NEED_DECLARATION_GETENV
extern char * getenv ();
#endif
/* Defined in collect2.c. */
extern int vflag, debug;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment