This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: target/8839: [gcc 3.1+] i386 code gen problem with fastcall/regparm attr
- From: ehrhardt at mathematik dot uni-ulm dot de
- To: ekraus02 at baker dot edu, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 6 Dec 2002 15:57:11 -0000
- Subject: Re: target/8839: [gcc 3.1+] i386 code gen problem with fastcall/regparm attr
- Reply-to: ehrhardt at mathematik dot uni-ulm dot de, ekraus02 at baker dot edu, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
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