"Marc E. Fiuczynski" <mef@xxxxxxxxxxxxxxxx> writes: > What internal function in gcc tells me the number of args the current > function has? I suppose you can extract it from current_function_decl. Walk down the list DECL_ARGUMENTS (current_function_decl). If it doesn't end in void_list_node, it's a varargs function. There are various examples in the sources, e.g., do_warn_unused_parameter(). Ian