Re: [avr-gcc-list] Allocation sequence of eeprom variables

2012-08-21 Thread Georg-Johann Lay
Please don't forget to "Reply All" when answering on a mailing list. Thanks. Juergen Harms wrote: >> I don't think you should be getting an "unintialised" warning for: >> extern const int8_t maxModule PROGMEM; > > I had tried that - without success. But, thank you, dropping the PROGMEM > attribu

Re: [avr-gcc-list] Allocation sequence of eeprom variables

2012-08-21 Thread Juergen Harms
> I don't think you should be getting an "unintialised" warning for: > extern const int8_t maxModule PROGMEM; I had tried that - without success. But, thank you, dropping the PROGMEM attribute from extern declarations does it - but as you say, a workaround, not quite clean. Juergen _

Re: [avr-gcc-list] Allocation sequence of eeprom variables

2012-08-21 Thread David Brown
On 21/08/2012 10:38, Juergen Harms wrote: On 08/20/2012 10:10 PM, David Brown wrote: Almost certainly, there is something wrong in your code, or in the way you have declared your external data - the "-Wuninitialized" flag should not give false positives as you describe. (It can give false posit

Re: [avr-gcc-list] Allocation sequence of eeprom variables

2012-08-21 Thread Juergen Harms
On 08/20/2012 10:10 PM, David Brown wrote: Almost certainly, there is something wrong in your code, or in the way you have declared your external data - the "-Wuninitialized" flag should not give false positives as you describe. (It can give false positives, when you know yourself that all code

Re: [avr-gcc-list] Allocation sequence of eeprom variables

2012-08-20 Thread David Brown
On 20/08/12 16:18, Juergen Harms wrote: I am presently switching from a rather obsolete version of avr-gcc (1.6.1, downloaded as a tarball) to a much newer one (4.6.2, available in an rpm package on my Mageia distribution), I am having a lot of small-fry but work-intensive problems (risk of edit

Re: [avr-gcc-list] Allocation sequence of eeprom variables

2012-08-20 Thread David Brown
On 20/08/12 19:36, Georg-Johann Lay wrote: Juergen Harms schrieb: I am presently switching from a rather obsolete version of avr-gcc (1.6.1, downloaded as a tarball) to a much newer one (4.6.2, available in an rpm package on my Mageia distribution), avr-gcc started around 2011, with GCC versi

Re: [avr-gcc-list] Allocation sequence of eeprom variables

2012-08-20 Thread Juergen Harms
On 08/20/2012 07:36 PM, Georg-Johann Lay wrote: Don't rely on unspecified behavior. It's a bad design pattern... Yes, that has been my original problem (which initially I had not realised). As a quick fix, I will put individual data structures in separate sections / modules and determine the

Re: [avr-gcc-list] Allocation sequence of eeprom variables

2012-08-20 Thread Georg-Johann Lay
Juergen Harms schrieb: I am presently switching from a rather obsolete version of avr-gcc (1.6.1, downloaded as a tarball) to a much newer one (4.6.2, available in an rpm package on my Mageia distribution), avr-gcc started around 2011, with GCC version 2.95 or 3.0 or EGCS. [...] My question