It seems like two bugs in gcc: > > case BUILT_IN_VA_ARG_PACK: > > /* All valid uses of __builtin_va_arg_pack () are removed during > > inlining. */ > > error ("%Kinvalid use of %<__builtin_va_arg_pack ()%>", exp); > > return const0_rtx;
The first bug is that one use is not removed; the second bug is that it is not detected and the error does not come up until linking. Please give me offlist the following information so that I can try to reproduce it and submit it to the GCC bugzilla site: 1) preprocessed source code. Run this make clean make CFLAGS="--save-temps -O2 -g" usage.o and send the usage.i and usage.s files. 2) Exact compiler version that you're using, i.e. the output of "gcc --version". 3) Output of "./config.guess" from the m4 build directory.