This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch,AVR]: Fix PR45099
- From: Georg-Johann Lay <avr at gjlay dot de>
- To: Nathan Froyd <froydnj at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Anatoly Sokolov <aesok at post dot ru>, Denis Chertykov <chertykov at gmail dot com>, Eric Weddington <eric dot weddington at atmel dot com>
- Date: Fri, 06 May 2011 15:54:20 +0200
- Subject: Re: [Patch,AVR]: Fix PR45099
- References: <4DBECC84.4080701@gjlay.de> <20110502161844.GN23480@codesourcery.com>
Nathan Froyd schrieb:
> On Mon, May 02, 2011 at 05:23:48PM +0200, Georg-Johann Lay wrote:
>> PR45099 is an extension that gives an error when a fixed register is
>> needed to pass a parameter to a function.
>>
>> Because the program will show malfunction when such code is generated,
>> anyway, I think an error is more appropriate than a warning (as
>> proposed in the PR).
>
> This seems like something that should be handled by common code.
>
> -Nathan
Yes, I agree. However, common code it too complicated for me to run
tests for, so I restrict myself to avr backend.
Until such a test will find its way into common code, it might still
be useful in avr backend. I think this has quite low priority for
other targets because global registers are not very common in, e.g. i386.
Johann