From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18852 invoked by alias); 6 Dec 2002 15:57:14 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 18761 invoked by uid 61); 6 Dec 2002 15:57:11 -0000 Date: Fri, 06 Dec 2002 07:57:00 -0000 Message-ID: <20021206155711.18752.qmail@sources.redhat.com> To: ekraus02@baker.edu, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org From: ehrhardt@mathematik.uni-ulm.de Reply-To: ehrhardt@mathematik.uni-ulm.de, ekraus02@baker.edu, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: target/8839: [gcc 3.1+] i386 code gen problem with fastcall/regparm attr X-SW-Source: 2002-12/txt/msg00363.txt.bz2 List-Id: 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