This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: fix regparm testcases
- From: "Zack Weinberg" <zack at codesourcery dot com>
- To: Michael Matz <matz at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 25 Feb 2004 12:06:45 -0800
- Subject: Re: fix regparm testcases
- References: <Pine.LNX.4.58.0402251204480.24101@wotan.suse.de>
Michael Matz <matz@suse.de> writes:
> Hi,
>
> my patch for checking regparm attribute matching for different function
> decls triggered some errors in the testsuite, which I didn't notice
> because I've run the testsuite only on amd64. Not very clever for a
> feature of this nature :-/
>
> The below patch fixes them. Okay? (tested on 3.4 and head on i686 this
> time ;) )
Do we *want* to require people to write the regparm attribute in both
places? I would think the natural thing would be to object only to
inconsistent specifications; if the definition doesn't have any
regparm attribute, just bring in the setting from the declaration.
zw