Use PROTO for varargs functions.
authorRichard Kenner <kenner@gcc.gnu.org>
Thu, 10 Feb 1994 13:13:41 +0000 (08:13 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Thu, 10 Feb 1994 13:13:41 +0000 (08:13 -0500)
(VPROTO): New macro.

From-SVN: r6519

gcc/rtl.h
gcc/tree.h

index a8a6399e20978943c67b0e469075a816e99a5de0..c6e47b2fa21f897345314c650babfb0c25cd934f 100644 (file)
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -151,6 +151,14 @@ typedef struct rtx_def
 #endif
 #endif
 
+#ifdef __STDC__
+#define VPROTO(ARGS)           ARGS
+#define VA_START(va_list,var)  va_start(va_list,var)
+#else
+#define VPROTO(ARGS)           (va_alist) va_dcl
+#define VA_START(va_list,var)  va_start(va_list)
+#endif
+
 #define NULL_RTX (rtx) 0
 
 /* Define a generic NULL if one hasn't already been defined.  */
@@ -643,20 +651,11 @@ extern rtx plus_constant_for_output_wide PROTO((rtx, HOST_WIDE_INT));
 
 #define GEN_INT(N) gen_rtx (CONST_INT, VOIDmode, (HOST_WIDE_INT) (N))
 
-#if 0
-/* We cannot define prototypes for the variable argument functions,
-   since they have not been ANSI-fied, and an ANSI compiler would
-   complain when compiling the definition of these functions.  */
+extern rtx bc_gen_rtx ();
 
 extern rtx gen_rtx                     PROTO((enum rtx_code, enum machine_mode, ...));
 extern rtvec gen_rtvec                 PROTO((int, ...));
 
-#else
-extern rtx bc_gen_rtx ();
-extern rtx gen_rtx ();
-extern rtvec gen_rtvec ();
-#endif
-
 #ifdef BUFSIZ                  /* stdio.h has been included */
 extern rtx read_rtx                    PROTO((FILE *));
 #else
index a697f96666b65c90469cc0932646eb066c261e9d..ed5440afbf9b9b29001e4c308d3264b37990e451 100644 (file)
@@ -1,5 +1,5 @@
 /* Front-end tree definitions for GNU compiler.
-   Copyright (C) 1989, 1993 Free Software Foundation, Inc.
+   Copyright (C) 1989, 1993, 1994 Free Software Foundation, Inc.
 
 This file is part of GNU CC.
 
@@ -987,6 +987,13 @@ union tree_node
 #endif
 #endif
 
+#ifdef __STDC__
+#define VPROTO(ARGS)            ARGS
+#define VA_START(va_list,var)  va_start(va_list,var)
+#else
+#define VPROTO(ARGS)            (va_alist) va_dcl
+#define VA_START(va_list,var)  va_start(va_list)
+#endif
 
 #define NULL_TREE (tree) NULL
 
@@ -1063,19 +1070,9 @@ extern tree get_identifier               PROTO((char *));
 #define build_int_2(LO,HI)  \
   build_int_2_wide ((HOST_WIDE_INT) (LO), (HOST_WIDE_INT) (HI))
 
-#if 0
-/* We cannot define prototypes for the variable argument functions,
-   since they have not been ANSI-fied, and an ANSI compiler would
-   complain when compiling the definition of these functions.  */
-
 extern tree build                      PROTO((enum tree_code, tree, ...));
 extern tree build_nt                   PROTO((enum tree_code, ...));
 extern tree build_parse_node           PROTO((enum tree_code, ...));
-#else
-extern tree build ();
-extern tree build_nt ();
-extern tree build_parse_node ();
-#endif
 
 extern tree build_int_2_wide           PROTO((HOST_WIDE_INT, HOST_WIDE_INT));
 extern tree build_real                 PROTO((tree, REAL_VALUE_TYPE));