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

2011-03-20 Thread Richard Sandiford
Nick Clifton writes: > 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 ? It

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

2011-03-17 Thread Richard Sandiford
Nick Clifton 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

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

2011-03-16 Thread Nick Clifton
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

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

2011-03-15 Thread Richard Sandiford
Nick Clifton writes: > Hi Eric, Hi Richard, > > A customer has reported the following bug with the MIPS target. Since > it is for a GNU extension to the C language (zero-length arrays) that > is being used in a non-intended fashion (the zero-length array is in a > structure with no other

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

2011-03-15 Thread Nick Clifton
Hi Eric, Hi Richard, A customer has reported the following bug with the MIPS target. Since it is for a GNU extension to the C language (zero-length arrays) that is being used in a non-intended fashion (the zero-length array is in a structure with no other fields) I doubt if you will want