Having searched through the rather voluminous options provided by gcc
, I haven't found anything approaching what you want.
However, if you're going to generate C code, my belief is that it's encumbent on you to generate correct code. The gcc
bods know full well the difference between a "zero argument" function and an "indeterminate number of arguments" one. So, my suggestion is to bite the bullet and insert that special case into your code.
If it's properly structured, you should only have to make the change in one place :-)