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] 3rd try: Add sseregparm function attribute for x86


Richard Henderson wrote:
> On Wed, Jun 15, 2005 at 07:48:06PM +0200, Richard Guenther wrote:
> 
>>>I don't think you should remove this.  This behaviour comes from 
>>>Windows compilers.
>>
>>Can you be more specific here?
> 
> 
> Try
> 
> void __declspec(fastcall) foo (void);
> void __declspec(stdcall) foo (void);
> 
> on VC++.

Sorry, I cannot.  But with gcc (and my patch) we'll error
out because both foo have conflicting types.  The thing I
maked work (that didn't work before) is

void __attribute__((fastcall, stdcall)) foo (void);

Richard.


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