diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-12-14 16:05:23 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-12-14 16:05:23 +0000 |
commit | dd48bf24dd4790789c4500ad5f801d61a7e4ac6b (patch) | |
tree | 94fb7f433efa5a20773aff67980a0d17cc9938cc /gcc/ginclude | |
parent | 82b85d083a367b761c1fde3d1a8ac61e73b5b13b (diff) | |
download | gcc-dd48bf24dd4790789c4500ad5f801d61a7e4ac6b.tar.gz |
* cppp.c (main): Set trigraphs and __STRICT_ANSI__ as
appropriate for -lang-c89 and -std=*.
* cppinit.c (cpp_handle_option): Likewise.
(new_pending_define): New, split out from cpp_handle_option.
* gcc.c (default_compilers): Don't define __STRICT_ANSI__
or enable trigraphs for -ansi/-std=*.
* ginclude/stdarg.h (__va_copy): New.
(va_copy): Don't define for C89.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30921 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ginclude')
-rw-r--r-- | gcc/ginclude/stdarg.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/ginclude/stdarg.h b/gcc/ginclude/stdarg.h index 923ac3c6453..c74c80d392b 100644 --- a/gcc/ginclude/stdarg.h +++ b/gcc/ginclude/stdarg.h @@ -54,7 +54,10 @@ typedef __builtin_va_list __gnuc_va_list; #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__) && __STRICT_ANSI__ + 0 < 199900 #define va_copy(d,s) __builtin_va_copy(&(d),(s)) +#endif +#define __va_copy(d,s) __builtin_va_copy(&(d),(s)) /* Define va_list, if desired, from __gnuc_va_list. */ |