RE: [Patch,AVR]: Clean up hard-coded SFR addresses

2012-02-06 Thread Weddington, Eric
> -Original Message- > From: Georg-Johann Lay [mailto:a...@gjlay.de] > Sent: Monday, February 06, 2012 4:45 AM > To: Weddington, Eric > Cc: gcc-patches@gcc.gnu.org; Denis Chertykov > Subject: Re: [Patch,AVR]: Clean up hard-coded SFR addresses > > > Here is a

Re: [Patch,AVR]: Clean up hard-coded SFR addresses

2012-02-06 Thread Georg-Johann Lay
Weddington, Eric wrote: > >> -Original Message- >> From: Georg-Johann Lay [mailto:a...@gjlay.de] >> Sent: Friday, February 03, 2012 12:47 PM >> To: gcc-patches@gcc.gnu.org >> Cc: Denis Chertykov; Weddington, Eric >> Subject: [Patch,AVR]: Clean up ha

Re: [Patch,AVR]: Clean up hard-coded SFR addresses

2012-02-03 Thread Georg-Johann Lay
This patch removes the define_constants from avr.md: SREG_ADDR, SP_ADDR, RAMPZ_ADDR. The constants were not used in md directly and didn't take care of afr_offset between RAM and I/O address. The replacement is a new structure avr_addr that holds RAM addresses of respective SFRs and takes into a

RE: [Patch,AVR]: Clean up hard-coded SFR addresses

2012-02-03 Thread Weddington, Eric
> -Original Message- > From: Georg-Johann Lay [mailto:a...@gjlay.de] > Sent: Friday, February 03, 2012 12:47 PM > To: gcc-patches@gcc.gnu.org > Cc: Denis Chertykov; Weddington, Eric > Subject: [Patch,AVR]: Clean up hard-coded SFR addresses > > This patch remo

[Patch,AVR]: Clean up hard-coded SFR addresses

2012-02-03 Thread Georg-Johann Lay
This patch removes the define_constants from avr.md: SREG_ADDR, SP_ADDR, RAMPZ_ADDR. The constants were not used in md directly and didn't take care of afr_offset between RAM and I/O address. The replacement is a new structure avr_addr that holds RAM addresses of respective SFRs and takes into ac