Re: Ping: [Patch,AVR]: Fix PR45263

2011-04-11 Thread Denis Chertykov
2011/4/11 Georg-Johann Lay : > Georg-Johann Lay schrieb: >> 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   > >

Re: Ping: [Patch,AVR]: Fix PR45263

2011-04-11 Thread Georg-Johann Lay
gt;>>> 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 in

Re: [Patch,AVR]: Fix PR45263

2011-04-06 Thread Georg-Johann Lay
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 th

Re: [Patch,AVR]: Fix PR45263

2011-04-04 Thread Georg-Johann Lay
Weddington, Eric schrieb: > >> -Original Message- >> From: Georg-Johann Lay [mailto:a...@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 &

RE: [Patch,AVR]: Fix PR45263

2011-04-01 Thread Weddington, Eric
> -Original Message- > From: Georg-Johann Lay [mailto:a...@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 > >

Re: [Patch,AVR]: Fix PR45263

2011-04-01 Thread Georg-Johann Lay
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. 2011-04-02 Georg-Johann Lay PR target/45263 * config/avr/

[Patch,AVR]: Fix PR45263

2011-04-01 Thread Georg-Johann Lay
This is straight forward fix for PR45263 (R20 clobbered by constructor/destructor). Using call-saved register like R15 is undesired because upcoming ATtiny10 architecture. 2011-04-01 Georg-Johann Lay PR target/45263 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors):