https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118184

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> [apinski@xeond2 gcc]$ ./cc1 -O2 -quiet t.c -std=gnu17  -fpreprocessed -fPIC
> In file included from ../include/bits/wchar2.h:1,
>                  from ../wcsmbs/wchar.h:1070,
>                  from ../include/wchar.h:11,
>                  from ./strtod_nan_main.c:24,
>                  from strtold_nan.c:29:
> ../wcsmbs/bits/wchar2.h: In function ‘swprintf’:
> ../wcsmbs/bits/wchar2.h:175:12: error: invalid use of ‘__builtin_va_arg_pack
> ()’
> ../wcsmbs/bits/wchar2.h: In function ‘wprintf’:
> ../wcsmbs/bits/wchar2.h:223:10: error: invalid use of ‘__builtin_va_arg_pack
> ()’
> ../wcsmbs/bits/wchar2.h: In function ‘fwprintf’:
> ../wcsmbs/bits/wchar2.h:229:10: error: invalid use of ‘__builtin_va_arg_pack
> ()’
> 
> I can't get it to compile at all. Is there an option I am missing?

yes -fgnu89-inline. Please next time also provide the full command line to
compile the source; it will save time of needing to guess what options are
needed.

Reply via email to