ginclude/varargs.h fix for 64-bit AIX

David Edelsohn dje@watson.ibm.com
Fri Jun 25 15:51:00 GMT 1999


	When I made the rounding change to stdarg.h and varargs.h for
64-bit AIX, I missed the fact that the definition of va_dcl also is a
problem.  This patch fixes it and remove another testsuite failure.

David

Fri Jun 25 18:46:38 1999  David Edelsohn  <edelsohn@gnu.org>

	* ginclude/varargs.h (va_dcl): Use long type for __builtin_va_alist
	on AIX.

Index: varargs.h
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/ginclude/varargs.h,v
retrieving revision 1.9
diff -c -p -r1.9 varargs.h
*** varargs.h	1999/05/08 01:52:36	1.9
--- varargs.h	1999/06/25 22:46:02
***************
*** 93,99 ****
--- 93,103 ----
  
  #define va_alist  __builtin_va_alist
  /* The ... causes current_function_varargs to be set in cc1.  */
+ #if defined(_AIX)
+ #define va_dcl    long __builtin_va_alist; __va_ellipsis
+ #else
  #define va_dcl    int __builtin_va_alist; __va_ellipsis
+ #endif
  
  /* Define __gnuc_va_list, just as in gstdarg.h.  */
  


More information about the Gcc-patches mailing list