This is the mail archive of the gcc@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]

Re: Attribute questions


Mumit Khan <khan@xraylith.wisc.edu> said:
> On Fri, 15 Jan 1999, Bertho Stultiens wrote:
> > Q1: Why does egcs complain about __attribute__((stdcall)) when it is
> > used in class member functions?
> 
> > 
> > class myclass {
> > public:
> > 	myclass() {}
> > 	~myclass() {}
> > 	int __attribute__((stdcall)) memberfunc(int);
> > };
> 
> It doesn't. Please switch to egcs-1.1.1; egcs-1.0.3 is *very* old by now,
> and lots win32 fixes weren't in it. I believe this particulare oversight
> was fixed on July 28 by Antonio Neto.

Please note that Bertho is probably talking about egcs under Linux/ix86,
with Linux/ix86 as target, interfacing to Win32 code, for the Wine (Wine Is
Not an Emulator :-) Win16/Win32 environment on Linux.

Hope this helps to clarify things a bit...

BTW, I don't think egcs on Linux should be able by default to generate
braindamaged Win calling conventions.  A workaround (via asm() perhaps?)
might be OK.

Yes, I realize what a pain that would be for Wine and similar stuff. No, I
haven't contributed code, so I should shut up on the matter. And I will.
-- 
Dr. Horst H. von Brand                       mailto:vonbrand@inf.utfsm.cl
Departamento de Informatica                     Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria              +56 32 654239
Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513


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