summaryrefslogtreecommitdiff
path: root/gcc/ginclude
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1997-03-02 22:41:16 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1997-03-02 22:41:16 +0000
commit7c07039520c18d51275f0a5a8cdf88011d454494 (patch)
treea1b3a70830601ed8aa4534c847a1f8c747047d35 /gcc/ginclude
parent5e4a4d151d67863f6a9645c4320b1ebb2b57a06b (diff)
downloadgcc-7c07039520c18d51275f0a5a8cdf88011d454494.tar.gz
Add definition of __va_copy.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13685 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ginclude')
-rw-r--r--gcc/ginclude/va-alpha.h3
-rw-r--r--gcc/ginclude/va-clipper.h3
-rw-r--r--gcc/ginclude/va-h8300.h3
-rw-r--r--gcc/ginclude/va-i860.h3
-rw-r--r--gcc/ginclude/va-i960.h3
-rw-r--r--gcc/ginclude/va-m88k.h3
-rw-r--r--gcc/ginclude/va-mips.h3
-rw-r--r--gcc/ginclude/va-pa.h3
-rw-r--r--gcc/ginclude/va-ppc.h6
-rw-r--r--gcc/ginclude/va-sh.h3
-rw-r--r--gcc/ginclude/va-sparc.h3
-rw-r--r--gcc/ginclude/va-spur.h3
-rw-r--r--gcc/ginclude/varargs.h3
13 files changed, 42 insertions, 0 deletions
diff --git a/gcc/ginclude/va-alpha.h b/gcc/ginclude/va-alpha.h
index e1465ff9650..2a4ba60b532 100644
--- a/gcc/ginclude/va-alpha.h
+++ b/gcc/ginclude/va-alpha.h
@@ -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) */
diff --git a/gcc/ginclude/va-clipper.h b/gcc/ginclude/va-clipper.h
index 21ddc562885..38cc77f9c1a 100644
--- a/gcc/ginclude/va-clipper.h
+++ b/gcc/ginclude/va-clipper.h
@@ -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) */
diff --git a/gcc/ginclude/va-h8300.h b/gcc/ginclude/va-h8300.h
index 25276586101..9565696e9ad 100644
--- a/gcc/ginclude/va-h8300.h
+++ b/gcc/ginclude/va-h8300.h
@@ -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) */
diff --git a/gcc/ginclude/va-i860.h b/gcc/ginclude/va-i860.h
index 9b9908a0aa5..56d2c7fe1d3 100644
--- a/gcc/ginclude/va-i860.h
+++ b/gcc/ginclude/va-i860.h
@@ -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) */
diff --git a/gcc/ginclude/va-i960.h b/gcc/ginclude/va-i960.h
index a30d5f542a4..ba0d08ba893 100644
--- a/gcc/ginclude/va-i960.h
+++ b/gcc/ginclude/va-i960.h
@@ -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) */
diff --git a/gcc/ginclude/va-m88k.h b/gcc/ginclude/va-m88k.h
index 7f8974b9c49..0a20d84501c 100644
--- a/gcc/ginclude/va-m88k.h
+++ b/gcc/ginclude/va-m88k.h
@@ -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) */
diff --git a/gcc/ginclude/va-mips.h b/gcc/ginclude/va-mips.h
index a238914f675..836dd1b95a5 100644
--- a/gcc/ginclude/va-mips.h
+++ b/gcc/ginclude/va-mips.h
@@ -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) */
diff --git a/gcc/ginclude/va-pa.h b/gcc/ginclude/va-pa.h
index 8183b237018..4865f6bfac0 100644
--- a/gcc/ginclude/va-pa.h
+++ b/gcc/ginclude/va-pa.h
@@ -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) */
diff --git a/gcc/ginclude/va-ppc.h b/gcc/ginclude/va-ppc.h
index 662c8846ab5..3d9d3f04228 100644
--- a/gcc/ginclude/va-ppc.h
+++ b/gcc/ginclude/va-ppc.h
@@ -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 */
diff --git a/gcc/ginclude/va-sh.h b/gcc/ginclude/va-sh.h
index 5c873cbb4d7..4bae1e0dcd2 100644
--- a/gcc/ginclude/va-sh.h
+++ b/gcc/ginclude/va-sh.h
@@ -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) */
diff --git a/gcc/ginclude/va-sparc.h b/gcc/ginclude/va-sparc.h
index 6c1692927ea..d95c38c9e48 100644
--- a/gcc/ginclude/va-sparc.h
+++ b/gcc/ginclude/va-sparc.h
@@ -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) */
diff --git a/gcc/ginclude/va-spur.h b/gcc/ginclude/va-spur.h
index 68cbc5ced64..7457ceb9fcd 100644
--- a/gcc/ginclude/va-spur.h
+++ b/gcc/ginclude/va-spur.h
@@ -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)
diff --git a/gcc/ginclude/varargs.h b/gcc/ginclude/varargs.h
index e93c3ee2ce0..4f3b8a3a538 100644
--- a/gcc/ginclude/varargs.h
+++ b/gcc/ginclude/varargs.h
@@ -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 */