aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKaveh Ghazi <ghazi@gcc.gnu.org>1998-02-27 08:23:47 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1998-02-27 08:23:47 +0000
commit5987a4f34ae693fa52d4f0c4adf136f6becb8984 (patch)
tree65c26b6cae5dd8cbc0d7916923e75eae3ae564c6 /gcc
parent81ce6e9a35c49a2f937b8b1d992c153ace6e3163 (diff)
downloadgcc-5987a4f34ae693fa52d4f0c4adf136f6becb8984.zip
gcc-5987a4f34ae693fa52d4f0c4adf136f6becb8984.tar.gz
gcc-5987a4f34ae693fa52d4f0c4adf136f6becb8984.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/genattr.c4
-rw-r--r--gcc/genattrtab.c2
-rw-r--r--gcc/genconfig.c4
-rw-r--r--gcc/genemit.c4
-rw-r--r--gcc/genextract.c4
-rw-r--r--gcc/genflags.c4
-rw-r--r--gcc/genopinit.c2
-rw-r--r--gcc/genoutput.c4
-rw-r--r--gcc/genpeep.c4
-rw-r--r--gcc/genrecog.c2
-rw-r--r--gcc/tlink.c4
11 files changed, 31 insertions, 7 deletions
diff --git a/gcc/genattr.c b/gcc/genattr.c
index 5be826b..afeaeb4 100644
--- a/gcc/genattr.c
+++ b/gcc/genattr.c
@@ -1,5 +1,5 @@
/* 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));
diff --git a/gcc/genattrtab.c b/gcc/genattrtab.c
index 5e513f6..d00644d 100644
--- a/gcc/genattrtab.c
+++ b/gcc/genattrtab.c
@@ -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 ();
diff --git a/gcc/genconfig.c b/gcc/genconfig.c
index cc012cb..0476295 100644
--- a/gcc/genconfig.c
+++ b/gcc/genconfig.c
@@ -1,6 +1,6 @@
/* 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. */
diff --git a/gcc/genemit.c b/gcc/genemit.c
index c556e14..08023f4 100644
--- a/gcc/genemit.c
+++ b/gcc/genemit.c
@@ -1,5 +1,5 @@
/* 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 ();
diff --git a/gcc/genextract.c b/gcc/genextract.c
index 6ebdfff..63ab2a5 100644
--- a/gcc/genextract.c
+++ b/gcc/genextract.c
@@ -1,5 +1,5 @@
/* 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. */
diff --git a/gcc/genflags.c b/gcc/genflags.c
index 68f0c83..85aa7b0 100644
--- a/gcc/genflags.c
+++ b/gcc/genflags.c
@@ -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 ();
diff --git a/gcc/genopinit.c b/gcc/genopinit.c
index de0e7b8..337587e 100644
--- a/gcc/genopinit.c
+++ b/gcc/genopinit.c
@@ -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 ();
diff --git a/gcc/genoutput.c b/gcc/genoutput.c
index c263f27..3fc76ce 100644
--- a/gcc/genoutput.c
+++ b/gcc/genoutput.c
@@ -1,5 +1,5 @@
/* 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 ();
diff --git a/gcc/genpeep.c b/gcc/genpeep.c
index 357376b..3a765a7 100644
--- a/gcc/genpeep.c
+++ b/gcc/genpeep.c
@@ -1,5 +1,5 @@
/* 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
diff --git a/gcc/genrecog.c b/gcc/genrecog.c
index 5ceaf54..d9c8a5d 100644
--- a/gcc/genrecog.c
+++ b/gcc/genrecog.c
@@ -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
diff --git a/gcc/tlink.c b/gcc/tlink.c
index 7219cd1..86b227a 100644
--- a/gcc/tlink.c
+++ b/gcc/tlink.c
@@ -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;