AVR C Runtime Library - Bugs: bug #12993, "__EICR" redefined...
You are not allowed to post comments on this tracker with your current authentication level.
bug #12993: "__EICR" redefined warning ATmega8
Submitter: | None | ||
Submitted: | Thu 05 May 2005 08:06:37 PM UTC | ||
Category: | None | Severity: | 3 - Normal |
Priority: | 5 - Normal | Item Group: | None |
Status: | Fixed | Assigned to: | None |
Percent Complete: | 0% | Originator Email: | -email is unavailable- |
Open/Closed: | Closed | Release: | None |
Fixed Release: | None |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
CC list is empty
Follow 3 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2005-06-25 | aesok | Status | None | Fixed | |
Open/Closed | Open | Closed | |||
2005-05-05 | None | Carbon-Copy | - | Added merrill_friesen --AT-- yahoo --DOT-- com |
Powered by Savane 3.13-bb6a.
Corresponding source code
Using WinAVR-20050214 (avr-libc 1.2.3) the following warning occurs 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>