Hi, thanx for you repport. I've forwarded your comments to the upstream bug #12134:
http://savannah.nongnu.org/bugs/index.php?func=detailitem&item_id=12134 On Wed, Mar 16, 2005 at 09:59:12PM -0500, Terran Melconian wrote: > Package: avr-libc > Version: 1.2.3-2 > Severity: minor > > The Analog to Digital Converter registers are defined like so: > > #define ADC _SFR_IO16(0x04) > #define ADCL _SFR_IO8(0x04) > #define ADCH _SFR_IO8(0x05) > > This is somewhat unfortunate, because "ADC" is also the ADd with Carry > instruction in assembly. This breaks preprocessed assembly files > which use capital instruction mnemonics. (ADCL and ADCH do not > conflict with anything). > > Perhaps the 16-bit ADC register could be renamed, or simply not > defined when __ASSEMBLY__ is defined. Whatever solution is > implemented should probably be tested with a C program with inline > assembly as well. > > I filed this as "minor" because it's easy to work around by undefining > ADC again after including the header. > -- Hakan Ardo -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]