This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[cancel] [patch] Fix compilation with gcc-4.7.x
On Tue, 20 Dec 2011 22:06:10 +0100, Tom Tromey wrote:
> My recollection is that va_start and va_end can be macros including "{"
> and "}", and so one must always pair them.
True:
ISO C99 7.15.1
Each invocation of the va_start and va_copy macros shall be matched by a
corresponding invocation of the va_end macro in the same function.
> It seems more like a gcc bug to me.
Filed as:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51644
Thanks,
Jan