genattr.c: Wrap prototype of `free' in NEED_DECLARATION_FREE.
authorKaveh Ghazi <ghazi@gcc.gnu.org>
Fri, 27 Feb 1998 08:23:47 +0000 (08:23 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Fri, 27 Feb 1998 08:23:47 +0000 (08:23 +0000)
        * 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

gcc/genattr.c
gcc/genattrtab.c
gcc/genconfig.c
gcc/genemit.c
gcc/genextract.c
gcc/genflags.c
gcc/genopinit.c
gcc/genoutput.c
gcc/genpeep.c
gcc/genrecog.c
gcc/tlink.c

index 5be826b35de4f726c190a6456f1d8ba0eb83fae9..afeaeb43179dd7a16b5d77f835ce3294302e35f9 100644 (file)
@@ -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));
index 5e513f69e71b30ba2ae4336b9c59b589411a7102..d00644dff3842d7dde989e1a070c2ace6145c448 100644 (file)
@@ -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 ();
index cc012cbd6ed67a7a37e841ba3c19b9cc3d1c037e..0476295aecfc67bfad4eed12daf2bedb065936cd 100644 (file)
@@ -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.  */
index c556e14141d12839e57f546862e8c269aefa97a1..08023f48a563f5bfba74df7856e3e2ea7565f542 100644 (file)
@@ -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 ();
index 6ebdfff5c598f16a4b692b9a7d6cfcd595ec28cb..63ab2a5fbd8ad2d59bafacb873a9bed5caed8a54 100644 (file)
@@ -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.  */
index 68f0c8368f666a287925e07a32ffaa6a9e606632..85aa7b07ca88f8a5f042e23c95acec9b2f457662 100644 (file)
@@ -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 ();
index de0e7b8222fe5bfe114852168d8ac57b26f9fde7..337587e0b73f0fb6e9f1bd678bb9c6a1a70b8a8c 100644 (file)
@@ -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 ();
index c263f271e30b3d1f4b40028501f0cb4d54e5e045..3fc76ce4c53a347da3ea508908084e4bec5f864c 100644 (file)
@@ -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 ();
index 357376b859074d135e6a71488469507fa6703ad6..3a765a7523f79b01a859fc046e18acc479e8f823 100644 (file)
@@ -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
index 5ceaf54eb1c792a37b28b261bb7db74c4817c514..d9c8a5d459360e615598742a806c0ea88a662a67 100644 (file)
@@ -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
index 7219cd17f12108cb70909d1d1ef7ec7556f1d66e..86b227a9bd18b85dbf64f35846fa2630aa625eef 100644 (file)
@@ -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;