From 2d47cc32c50b66e3d1f975ba3f5ff41bed7b656f Mon Sep 17 00:00:00 2001 From: geoffk Date: Thu, 30 Mar 2000 00:03:14 +0000 Subject: * c-common.c (c_common_nodes_and_builtins): The first parameter to __builtin_va_start and __builtin_va_copy is now either a 'va_list' or a reference to a va_list. * builtins.c (stabilize_va_list): Simplify now we don't have to work around C array address decay. * c-typeck.c (convert_for_assignment): Handle assignment to a reference parameter by taking the address of the RHS. * ginclude/stdarg.h (va_start): Don't take address of first parameter. (va_copy): Likewise. (__va_copy): Likewise. * ginclude/varargs.h (va_start): Likewise. (__va_copy): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32821 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ginclude/stdarg.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gcc/ginclude/stdarg.h') diff --git a/gcc/ginclude/stdarg.h b/gcc/ginclude/stdarg.h index 3337065a06c..9f6215d31fa 100644 --- a/gcc/ginclude/stdarg.h +++ b/gcc/ginclude/stdarg.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1989, 1997, 1998, 1999 Free Software Foundation, Inc. +/* Copyright (C) 1989, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. This file is part of GNU CC. @@ -51,13 +51,13 @@ typedef __builtin_va_list __gnuc_va_list; actual type **after default promotions**. Thus, va_arg (..., short) is not valid. */ -#define va_start(v,l) __builtin_stdarg_start(&(v),l) +#define va_start(v,l) __builtin_stdarg_start((v),l) #define va_end __builtin_va_end #define va_arg __builtin_va_arg #if !defined(__STRICT_ANSI__) || __STDC_VERSION__ + 0 >= 199900L -#define va_copy(d,s) __builtin_va_copy(&(d),(s)) +#define va_copy(d,s) __builtin_va_copy((d),(s)) #endif -#define __va_copy(d,s) __builtin_va_copy(&(d),(s)) +#define __va_copy(d,s) __builtin_va_copy((d),(s)) /* Define va_list, if desired, from __gnuc_va_list. */ -- cgit v1.2.1