This is the mail archive of the gcc-bugs@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: target/8839: [gcc 3.1+] i386 code gen problem with fastcall/regparm attr


Synopsis: [gcc 3.1+] i386 code gen problem with fastcall/regparm attr

State-Changed-From-To: open->closed
State-Changed-By: cae
State-Changed-When: Fri Dec  6 07:56:51 2002
State-Changed-Why:
    Your code is wrong. The attribute when declaring the Type FooPtr
    applies to the int type not to the function type. Add proper parenthesis
    around your designators like this and it compiles fine:
    
      typedef int (__attribute__ ((regparm (1))) *FooPtr)(int);
    
    regards  Christian

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8839


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