Package: gcc-avr
Version: 1:4.7.2-2
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

in the deprecation handling in the AVR libc, a preprocessor symbol is
looked for with the new name first, then with a deprecated name that is
poisoned, with a construct similar to

#pragma GCC poison bar
#define foo
#if defined(foo)
#elif defined(bar)
#else
#endif

gcc-avr complains about this construct as the check in #elif references
"bar", but as it can never be taken, this is pointless.

The avr-libc bug report showing the (IMO valid) use case is #719635.

The same behaviour can be observed in mainline gcc and clang.

   Simon

- -- System Information:
Debian Release: 7.1
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.10-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gcc-avr depends on:
ii  binutils-avr  2.20.1-3
ii  libc6         2.17-92
ii  libgmp10      2:5.0.5+dfsg-2
ii  libmpc2       0.9-4
ii  libmpfr4      3.1.0-5
ii  zlib1g        1:1.2.7.dfsg-13

gcc-avr recommends no packages.

Versions of packages gcc-avr suggests:
ii  avr-libc      1:1.8.0-3
pn  gcc-4.2       <none>
pn  gcc-doc       <none>
pn  task-c-devel  <none>

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iJwEAQECAAYFAlILuz0ACgkQ0sfeulffv7s6EgP/QZBO6ZT1HqeMriroeG779vEe
LNwCDEK/LeTL3L2Ku4B0HAa6OAvtqoX32pRAIrH8269H2BGYTSwF7xeaCercCcy/
O1BXkQ0hCPf95sq7Lm1vovlZZAdk7EV4iskKShgeSB8dr7lEfAfegLnEtZvxbswD
xwnDWulbnhfIU7ZhnA8=
=aqrf
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to