This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]