MIPS: va_arg is unable to correct extract an empty zero-length array

Nick Clifton nickc@redhat.com
Wed Mar 16 14:56:00 GMT 2011


Hi Richard,

> +      /* Even zero-sized arguments occupy one byte.  */
> +      if (size == 0)
> +	size = 1;

That fixes it!  Thanks.

Will you apply this patch yourself, or should I submit the patch and the 
test case as a separate email to gcc-patches ?

Cheers
   Nick




More information about the Gcc-bugs mailing list