[cancel] [patch] Fix compilation with gcc-4.7.x

Jan Kratochvil jan.kratochvil@redhat.com
Tue Dec 20 22:16:00 GMT 2011


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



More information about the Gdb-patches mailing list