|
From: | E. Weddington |
Subject: | Re: [avr-libc-dev] "__EICR" redefined warning atmega8 |
Date: | Thu, 05 May 2005 13:54:17 -0600 |
User-agent: | Mozilla Thunderbird 1.0.2 (Windows/20050317) |
Merrill Friesen wrote:
I am using WinAVR-20050214 (avr-libc 1.2.3) and get the following warning when compiling for the atmega8 MCU: c:/winavr/avr/include/avr/interrupt.h:117:1: warning: "__EICR" redefined c:/winavr/avr/include/avr/interrupt.h:114:1: warning: this is the location of the previous definition I believe this is because <iom8.h> defines: <snip> #define GIMSK _SFR_IO8(0x3B) #define GICR _SFR_IO8(0x3B) /* Changed in 2486H-AVR-09/02 */ </snip> And <interrupt.h> assumes that only one of these is defined: <snip> /* Define common register definition if available. */ #if defined(EIMSK) #define __EICR EIMSK #endif #if defined(GIMSK) #define __EICR GIMSK #endif #if defined(GICR) #define __EICR GICR #endif </snip>
Good catch! Thanks for finding this!
All of the GNU project's mailing list archives are having problems recently, including on Savannah.I searched avr-libc bugs, tasks, and patches (I have been getting connection refused errors trying to access the mailing list archives for a day or more) and haven't found anything related to this issue.
I can easily work around it by commenting out the definition of GIMSK in <iom8.h>, but I figure someone else will encounter this as well and it should be fixed in the appropriate manner (I don't know what that is).
Would you be willing to fill out a bug tracker on the avr-libc project on this? That way it won't get lost. Thanks!
Eric
[Prev in Thread] | Current Thread | [Next in Thread] |