diff options
author | Richard Henderson <rth@gcc.gnu.org> | 1999-12-14 08:05:23 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 1999-12-14 08:05:23 -0800 |
commit | 223dca6a2053c626e10ac253bd02d67268a4049b (patch) | |
tree | 94fb7f433efa5a20773aff67980a0d17cc9938cc /gcc/ginclude | |
parent | 9e3fc4303ea57e3547a1c938d1897279859ef412 (diff) | |
download | gcc-223dca6a2053c626e10ac253bd02d67268a4049b.zip gcc-223dca6a2053c626e10ac253bd02d67268a4049b.tar.gz gcc-223dca6a2053c626e10ac253bd02d67268a4049b.tar.bz2 |
cppp.c (main): Set trigraphs and __STRICT_ANSI__ as appropriate for -lang-c89 and -std=*.
* 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.
From-SVN: r30921
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 923ac3c..c74c80d 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. */ |