This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Patch, 4.6, AVR]: Fix PR45263
- From: Georg-Johann Lay <avr at gjlay dot de>
- To: gcc-patches at gcc dot gnu dot org
- Cc: "Weddington, Eric" <Eric dot Weddington at atmel dot com>, Denis Chertykov <chertykov at gmail dot com>, Anatoly Sokolov <aesok at post dot ru>
- Date: Fri, 27 May 2011 16:22:20 +0200
- Subject: [Patch, 4.6, AVR]: Fix PR45263
- References: <4D96175D.8080203@gjlay.de> <4D964B36.3050008@gjlay.de> <8D64F155F1C88743BFDC71288E8E2DA801268051@csomb01.corp.atmel.com> <4D99CF65.3090002@gjlay.de> <4D9C6ADB.4060504@gjlay.de> <4DA33207.9040207@gjlay.de>
Georg-Johann Lay schrieb:
> Georg-Johann Lay schrieb:
>> Georg-Johann Lay schrieb:
>>> Weddington, Eric schrieb:
>>>>> -----Original Message-----
>>>>> From: Georg-Johann Lay [mailto:avr@gjlay.de]
>>>>> Sent: Friday, April 01, 2011 4:01 PM
>>>>> To: Georg-Johann Lay
>>>>> Cc: gcc-patches@gcc.gnu.org; Denis Chertykov; Anatoly Sokolov; Weddington,
>>>>> Eric
>>>>> Subject: Re: [Patch,AVR]: Fix PR45263
>>>>>
>>>>> This is a better fix that does not need push/pop and does not increase
>>>>> numer of instructions.
>>>>>
>>>>> r16 takes the role of r20, and the value formerly in r16,
>>>>> i.e. hh8(__dtors_end resp. __ctors_start) is recreated as needed.
>>>>>
>>>> Hi Johann,
>>>>
>>>> Have you tested this patch against the test case in bug #45263?
>> Tested patch v2 from 2010-04-02 now for atmega2560 on avrtest
>> simulator. In main, var1 and var2 are initialized as expected and
>> anObject.getVal() is 30.
>>
>> Without patch the program hangs.
>
>
> 2011-04-11 Georg-Johann Lay <avr@gjlay.de>
>
> PR target/45263
> * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors):
> Don't use
> r20 around calls of __tablejump_elpm__
http://gcc.gnu.org/ml/gcc-patches/2011-04/msg00774.html
This patch applies similar to 4.6.
Ok to install?
Johann