Mark Mitchell <[EMAIL PROTECTED]> writes:
> Zack Weinberg wrote:
>
>> It would certainly be nice to get rid of this mess, but Jim Wilson
>> expressed concerns last time it came up:
>> <http://gcc.gnu.org/ml/gcc-patches/2004-01/msg03213.html>
>
> Well, sidestepping that, what the compiler really seems to want is
> "the last argument that was declared by the user" rather than "the
> last parameter with a name". We have a good way of determining that:
> it's just the last parameter, nowadays, given that we've no longer got
> varargs to worry about. So can't we just fix this loop:
>
> if (current_function_stdarg)
> {
> tree tem;
> for (tem = TREE_CHAIN (parm); tem; tem = TREE_CHAIN (tem))
> if (DECL_NAME (tem))
> break;
> if (tem == 0)
> data->last_named = true;
> }
>
> to iterate until the end of the loop, without checking DECL_NAME?
So, in other words,
if (current_function_stdarg)
data->last_named = true;
?
It sounds like a good plan to me but I don't know that I know all the
issues.
zw