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

Richard Sandiford rdsandiford@googlemail.com
Thu Mar 17 22:00:00 GMT 2011


Nick Clifton <nickc@redhat.com> writes:
>> +      /* Even zero-sized arguments occupy one byte.  */
>> +      if (size == 0)
>> +	size = 1;
>
> That fixes it!

Great!  Thanks for confirming.

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

It's OK, I'll try to do it this weekend.  I'd like to add a testcase for
stack arguments as well.

Richard



More information about the Gcc-bugs mailing list