OSDN Git Service

Add definition of __va_copy.
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 2 Mar 1997 22:41:16 +0000 (22:41 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 2 Mar 1997 22:41:16 +0000 (22:41 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13685 138bc75d-0d04-0410-961f-82ee72b054a4

13 files changed:
gcc/ginclude/va-alpha.h
gcc/ginclude/va-clipper.h
gcc/ginclude/va-h8300.h
gcc/ginclude/va-i860.h
gcc/ginclude/va-i960.h
gcc/ginclude/va-m88k.h
gcc/ginclude/va-mips.h
gcc/ginclude/va-pa.h
gcc/ginclude/va-ppc.h
gcc/ginclude/va-sh.h
gcc/ginclude/va-sparc.h
gcc/ginclude/va-spur.h
gcc/ginclude/varargs.h

index e1465ff..2a4ba60 100644 (file)
@@ -124,5 +124,8 @@ enum {
                 ? (6 * 8) + 8 : __va_tsize (__type)))))
 #endif
 
+/* Copy __gnuc_va_list into another variable of this type.  */
+#define __va_copy(dest, src) (dest) = (src)
+
 #endif /* defined (_STDARG_H) || defined (_VARARGS_H) */
 
index 21ddc56..38cc77f 100644 (file)
@@ -54,4 +54,7 @@ typedef struct
 
 #define va_end(AP)     ((void) 0)
 
+/* Copy __gnuc_va_list into another variable of this type.  */
+#define __va_copy(dest, src) (dest) = (src)
+
 #endif /* defined (_STDARG_H) || defined (_VARARGS_H) */
index 2527658..9565696 100644 (file)
@@ -50,4 +50,7 @@ typedef void *__gnuc_va_list;
 
 #define va_end(AP)     ((void) 0)
 
+/* Copy __gnuc_va_list into another variable of this type.  */
+#define __va_copy(dest, src) (dest) = (src)
+
 #endif /* defined (_STDARG_H) || defined (_VARARGS_H) */
index 9b9908a..56d2c7f 100644 (file)
@@ -207,5 +207,8 @@ __extension__                                                               \
   __rv;                                                                        \
 }))
 
+/* Copy __gnuc_va_list into another variable of this type.  */
+#define __va_copy(dest, src) (dest) = (src)
+
 #endif /* defined (_STDARG_H) || defined (_VARARGS_H) */
 
index a30d5f5..ba0d08b 100644 (file)
@@ -72,5 +72,8 @@ void va_end (__gnuc_va_list);         /* Defined in libgcc.a */
 #endif
 #define        va_end(AP)      ((void *)0)
 
+/* Copy __gnuc_va_list into another variable of this type.  */
+#define __va_copy(dest, src) (dest) = (src)
+
 #endif /* defined (_STDARG_H) || defined (_VARARGS_H) */
 
index 7f8974b..0a20d84 100644 (file)
@@ -81,4 +81,7 @@ typedef struct
 
 #define va_end(AP)     ((void)0)
 
+/* Copy __gnuc_va_list into another variable of this type.  */
+#define __va_copy(dest, src) (dest) = (src)
+
 #endif /* defined (_STDARG_H) || defined (_VARARGS_H) */
index a238914..836dd1b 100644 (file)
@@ -265,4 +265,7 @@ void va_end (__gnuc_va_list);               /* Defined in libgcc.a */
 #endif
 #endif /* ! defined (__mips_eabi)  */
 
+/* Copy __gnuc_va_list into another variable of this type.  */
+#define __va_copy(dest, src) (dest) = (src)
+
 #endif /* defined (_STDARG_H) || defined (_VARARGS_H) */
index 8183b23..4865f6b 100644 (file)
@@ -46,4 +46,7 @@ void va_end (__gnuc_va_list);         /* Defined in libgcc.a */
 #endif
 #define va_end(AP)     ((void)0)
 
+/* Copy __gnuc_va_list into another variable of this type.  */
+#define __va_copy(dest, src) (dest) = (src)
+
 #endif /* defined (_STDARG_H) || defined (_VARARGS_H) */
index 662c884..3d9d3f0 100644 (file)
@@ -170,6 +170,9 @@ __extension__ (*({                                                  \
 
 #define va_end(AP)     ((void)0)
 
+/* Copy __gnuc_va_list into another variable of this type.  */
+#define __va_copy(dest, src) *(dest) = *(src)
+
 #endif /* __VA_PPC_H__ */
 #endif /* defined (_STDARG_H) || defined (_VARARGS_H) */
 
@@ -223,5 +226,8 @@ typedef char *__gnuc_va_list;
 
 #define va_end(AP)     ((void)0)
 
+/* Copy __gnuc_va_list into another variable of this type.  */
+#define __va_copy(dest, src) (dest) = (src)
+
 #endif /* defined (_STDARG_H) || defined (_VARARGS_H) */
 #endif /* Windows NT */
index 5c873cb..4bae1e0 100644 (file)
@@ -217,4 +217,7 @@ __extension__                                                       \
 
 #endif /* SH3E */
 
+/* Copy __gnuc_va_list into another variable of this type.  */
+#define __va_copy(dest, src) (dest) = (src)
+
 #endif /* defined (_STDARG_H) || defined (_VARARGS_H) */
index 6c16929..d95c38c 100644 (file)
@@ -200,4 +200,7 @@ __extension__                                                       \
        ((TYPE *) (void *) ((char *)(pvar) - __va_rounded_size (TYPE)))));}))
 #endif /* not __arch64__ */
 
+/* Copy __gnuc_va_list into another variable of this type.  */
+#define __va_copy(dest, src) (dest) = (src)
+
 #endif /* defined (_STDARG_H) || defined (_VARARGS_H) */
index 68cbc5c..7457ceb 100644 (file)
@@ -59,3 +59,6 @@ __extension__ \
           (pvar).__pnt += (sizeof(type) + 3) & ~3; \
        } \
        __va_result; }))
+
+/* Copy __gnuc_va_list into another variable of this type.  */
+#define __va_copy(dest, src) (dest) = (src)
index e93c3ee..4f3b8a3 100644 (file)
@@ -114,6 +114,9 @@ typedef void *__gnuc_va_list;
                           ? sizeof (TYPE) : __va_rounded_size (TYPE))))))
 #endif /* big-endian */
 
+/* Copy __gnuc_va_list into another variable of this type.  */
+#define __va_copy(dest, src) (dest) = (src)
+
 #endif /* not sh */
 #endif /* not powerpc with V.4 calling sequence */
 #endif /* not h8300 */