This is the mail archive of the gcc-patches@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: PATCH [cygwin/mingw ]: Don't add stdcall suffix to variadicfunctions


On Thu, 15 Jul 2004 18:53:33 +1200 (NZST), Danny Smith <danny_smith_0000@yahoo.co.nz> wrote:

> However, for variadic functions, which cannot be handled
> as __stdcall because the parameter list is indefinite, it
> leaves off the suffix
> eg.
> void __stdcall foo (int a, ...) 
>
> foo stays as _foo
>
> Currently gcc adds @0 suffix to both types of function
>
> The following patch makes gcc consistent with native compiler.  It also
> rationalizes the two functions gen_fastcall_sufffix  and gen_stdcall_suffix
> (which are identical except for two statements) into a single function

Would it make more sense just to ignore the __stdcall for variadic
functions, since it doesn't work anyway?

Jason


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