This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, libiberty] Accept __va_copy in addition to va_copy


Hi,

GCC 2.95.3 only provided __va_copy and not va_copy.  Unless 2.95.3
should not be used as the build compiler libiberty should accept
__va_copy besides va_copy.

The patch fixes native powerpc-lynx-lynxos.  It was regression-tested
on i686-pc-linux-gnu.

Is it OK to apply?

2004-09-08  Adam Nemet  <anemet@lnxw.com> 
 
        * vasprintf.c: Accept __va_copy in addition to va_copy. 

Index: vasprintf.c 
=================================================================== 
RCS file: /cvs/gcc/gcc/libiberty/vasprintf.c,v 
retrieving revision 1.13 
diff -u -p -r1.13 vasprintf.c 
--- vasprintf.c 30 Oct 2003 20:18:13 -0000      1.13 
+++ vasprintf.c 7 Sep 2004 18:58:45 -0000 
@@ -27,6 +27,9 @@ Boston, MA 02111-1307, USA.  */ 
 #else 
 #include <varargs.h> 
 #endif 
+#if !defined (va_copy) && defined (__va_copy) 
+# define va_copy(d,s)  __va_copy((d),(s)) 
+#endif 
 #include <stdio.h> 
 #ifdef HAVE_STRING_H 
 #include <string.h> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]