Acknowledgement sent to Terran Melconian <terran@consistent.org>:
New Bug report received and forwarded. Copy sent to Hakan Ardo <hakan@debian.org>.
(full text, mbox, link).
Subject: avr-libc: ADC register define stomps on instruction of same name
Date: Wed, 16 Mar 2005 21:59:12 -0500
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.
Information forwarded to debian-bugs-dist@lists.debian.org: Bug#299881; Package avr-libc.
(full text, mbox, link).
Acknowledgement sent to Hakan Ardo <hakan@debian.org>:
Extra info received and forwarded to list.
(full text, mbox, link).
To: Terran Melconian <terran@consistent.org>, 299881@bugs.debian.org
Subject: Re: Bug#299881: avr-libc: ADC register define stomps on instruction of same name
Date: Thu, 17 Mar 2005 08:33:14 +0100
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
Reply sent to Hakan Ardo <hakan@debian.org>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to Terran Melconian <terran@consistent.org>:
Bug acknowledged by developer.
(full text, mbox, link).
Source: avr-libc
Source-Version: 1:1.4.3-1
We believe that the bug you reported is fixed in the latest version of
avr-libc, which is due to be installed in the Debian FTP archive:
avr-libc_1.4.3-1.diff.gz
to pool/main/a/avr-libc/avr-libc_1.4.3-1.diff.gz
avr-libc_1.4.3-1.dsc
to pool/main/a/avr-libc/avr-libc_1.4.3-1.dsc
avr-libc_1.4.3-1_all.deb
to pool/main/a/avr-libc/avr-libc_1.4.3-1_all.deb
avr-libc_1.4.3.orig.tar.gz
to pool/main/a/avr-libc/avr-libc_1.4.3.orig.tar.gz
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 299881@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Hakan Ardo <hakan@debian.org> (supplier of updated avr-libc package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Sun, 5 Feb 2006 11:29:51 +0100
Source: avr-libc
Binary: avr-libc
Architecture: source all
Version: 1:1.4.3-1
Distribution: unstable
Urgency: low
Maintainer: Hakan Ardo <hakan@debian.org>
Changed-By: Hakan Ardo <hakan@debian.org>
Description:
avr-libc - Standard C library for Atmel AVR development
Closes: 299881350536
Changes:
avr-libc (1:1.4.3-1) unstable; urgency=low
.
* New upstream release (closes: #350536,#299881). Older versions of avr-libc
are avalible as avr-libc-1.2 and avr-libc-1.0.
Files:
e72e3a07dc440649da5778195102b9f9 647 otherosfs extra avr-libc_1.4.3-1.dsc
c042630554be22a7aa85cb2411ca1a4f 1011449 otherosfs extra avr-libc_1.4.3.orig.tar.gz
62eddb79831843351aedcf688b706086 6190 otherosfs extra avr-libc_1.4.3-1.diff.gz
fd2586550a484aac47ac36957bfdfcc9 2189234 otherosfs extra avr-libc_1.4.3-1_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFD5e1zAbtddT3jfcARAvKqAJ98fxjmfkhFzLwmoRfOIO0pL0KMGgCeNqQG
/e7cBEejZlO5ENIeBWNDi2k=
=r31B
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Tue, 26 Jun 2007 18:19:32 GMT) (full text, mbox, link).
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.